From 07cfc6efc255c9c6f47a40750e89be9ba284d442 Mon Sep 17 00:00:00 2001 From: Leon Xu Date: Sat, 7 May 2022 15:12:52 -0700 Subject: [PATCH] doc: dispatch EMPTY_BASKET type --- src/Checkout/Payment/Payment.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Checkout/Payment/Payment.js b/src/Checkout/Payment/Payment.js index dacb543..87b1913 100644 --- a/src/Checkout/Payment/Payment.js +++ b/src/Checkout/Payment/Payment.js @@ -47,6 +47,10 @@ function Payment() { setError(null); setProcessing(false); + dispatch({ + type: "EMPTY_BASKET", + }); + history.replace("/orders"); }); };