diff --git a/src/Components/SavedCardItem.res b/src/Components/SavedCardItem.res index 7cd8d3f3..71a349a1 100644 --- a/src/Components/SavedCardItem.res +++ b/src/Components/SavedCardItem.res @@ -37,7 +37,6 @@ let make = ( ~savedCardlength, ~cvcProps, ~paymentType, - ~setRequiredFieldsBody, ) => { let {themeObj, config, localeString} = Recoil.useRecoilValueFromAtom(RecoilAtoms.configAtom) let {hideExpiredPaymentMethods, displayDefaultSavedPaymentIcon} = Recoil.useRecoilValueFromAtom( @@ -208,14 +207,6 @@ let make = ( - Dict.make()) + let (requiredFieldsBody, _) = React.useState(_ => Dict.make()) let loggerState = Recoil.useRecoilValueFromAtom(RecoilAtoms.loggerAtom) let setUserError = message => { postFailedSubmitResponse(~errortype="validation_error", ~message) @@ -60,7 +60,6 @@ let make = ( savedCardlength cvcProps paymentType - setRequiredFieldsBody /> ) ->React.array}