From 85deaf80fd611ff0d45dfadab23d71af5d3b1860 Mon Sep 17 00:00:00 2001 From: Nidhish-D-Nayak Date: Sat, 5 Aug 2023 23:49:53 +0530 Subject: [PATCH] Updated status code != 200 to failed in payment-form component --- src/components/payment-form/payment-form.component.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/payment-form/payment-form.component.tsx b/src/components/payment-form/payment-form.component.tsx index fbc593a..d1acd54 100644 --- a/src/components/payment-form/payment-form.component.tsx +++ b/src/components/payment-form/payment-form.component.tsx @@ -67,6 +67,7 @@ const PaymentForm = () => { setUserPayment("successful"); } else { console.log("PAYMENT FAILED"); + setUserPayment("failed"); } },