Skip to content

Commit

Permalink
chore: fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sakksham7 committed Dec 23, 2024
1 parent 7efa55a commit a481023
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Components/ClickToPayAuthenticate.res
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ let make = (
~paymentType,
) => {
let (clickToPayConfig, setClickToPayConfig) = Recoil.useRecoilState(RecoilAtoms.clickToPayConfig)
//TODO - To be discussed
let (_, setRequiredFieldsBody) = React.useState(_ => Dict.make())

let closeComponentIfSavedMethodsAreEmpty = () => {
if savedMethods->Array.length === 0 && loadSavedCards !== PaymentType.LoadingSavedCards {
Expand Down Expand Up @@ -155,6 +157,7 @@ let make = (
savedCardlength={cards->Array.length}
cvcProps
paymentType
setRequiredFieldsBody
/>
})
->React.array}
Expand Down

0 comments on commit a481023

Please sign in to comment.