From 2d570a7c521eee7308268678007c6fae6d7c7689 Mon Sep 17 00:00:00 2001 From: Pujan Date: Fri, 27 Oct 2023 15:16:58 +0530 Subject: [PATCH] comment updated --- src/pages/settings/Wallet/AddDebitCardPage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/settings/Wallet/AddDebitCardPage.js b/src/pages/settings/Wallet/AddDebitCardPage.js index bb115589fa3e..80d1a899a9bb 100644 --- a/src/pages/settings/Wallet/AddDebitCardPage.js +++ b/src/pages/settings/Wallet/AddDebitCardPage.js @@ -45,7 +45,9 @@ function DebitCardPage(props) { const prevFormDataSetupComplete = usePrevious(props.formData.setupComplete); const nameOnCardRef = useRef(null); - // Reset the form values on mount and unmount of the component + /** + * Reset the form values on mount and unmount of the component to Make sure we reset the onyx values so old errors don't show if this form is displayed later + */ useEffect(() => { PaymentMethods.clearDebitCardFormErrorAndSubmit();