From aa86abd16d336d3ad8c391e40191d43140a7b9bc Mon Sep 17 00:00:00 2001 From: Cian Buckley <5004532+cianBuckley@users.noreply.github.com> Date: Thu, 2 Nov 2023 16:41:45 +0000 Subject: [PATCH] Revert "don't invalidate preloaded cache on checkout close events (#46)" This reverts commit ddf153ffd01971c8a4dda9b328fb6e8affaaf162. --- Sources/ShopifyCheckout/CheckoutViewController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/ShopifyCheckout/CheckoutViewController.swift b/Sources/ShopifyCheckout/CheckoutViewController.swift index 2d0b016b..f1cd4e93 100644 --- a/Sources/ShopifyCheckout/CheckoutViewController.swift +++ b/Sources/ShopifyCheckout/CheckoutViewController.swift @@ -116,6 +116,7 @@ class CheckoutViewController: UIViewController, UIAdaptivePresentationController } private func didCancel() { + CheckoutView.invalidate() delegate?.checkoutDidCancel() } }