Skip to content

Commit

Permalink
chore: disable dynamic fields for saved card screen (#844)
Browse files Browse the repository at this point in the history
  • Loading branch information
PritishBudhiraja authored Dec 18, 2024
1 parent 08a0f95 commit 50ad487
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
9 changes: 0 additions & 9 deletions src/Components/SavedCardItem.res
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ let make = (
~savedCardlength,
~cvcProps,
~paymentType,
~setRequiredFieldsBody,
) => {
let {themeObj, config, localeString} = Recoil.useRecoilValueFromAtom(RecoilAtoms.configAtom)
let {hideExpiredPaymentMethods, displayDefaultSavedPaymentIcon} = Recoil.useRecoilValueFromAtom(
Expand Down Expand Up @@ -208,14 +207,6 @@ let make = (
</div>
</RenderIf>
<RenderIf condition={isActive}>
<DynamicFields
paymentType
paymentMethod=paymentItem.paymentMethod
paymentMethodType
setRequiredFieldsBody
isSavedCardFlow=true
savedMethod=paymentItem
/>
<Surcharge
paymentMethod=paymentItem.paymentMethod
paymentMethodType
Expand Down
3 changes: 1 addition & 2 deletions src/Components/SavedMethods.res
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let make = (
let (showFields, setShowFields) = Recoil.useRecoilState(RecoilAtoms.showCardFieldsAtom)
let areRequiredFieldsValid = Recoil.useRecoilValueFromAtom(RecoilAtoms.areRequiredFieldsValid)
let isManualRetryEnabled = Recoil.useRecoilValueFromAtom(RecoilAtoms.isManualRetryEnabled)
let (requiredFieldsBody, setRequiredFieldsBody) = React.useState(_ => Dict.make())
let (requiredFieldsBody, _) = React.useState(_ => Dict.make())
let loggerState = Recoil.useRecoilValueFromAtom(RecoilAtoms.loggerAtom)
let setUserError = message => {
postFailedSubmitResponse(~errortype="validation_error", ~message)
Expand Down Expand Up @@ -60,7 +60,6 @@ let make = (
savedCardlength
cvcProps
paymentType
setRequiredFieldsBody
/>
)
->React.array}
Expand Down

0 comments on commit 50ad487

Please sign in to comment.