From fd107951beedc82d83a0688a1ae7df86c4bf7c12 Mon Sep 17 00:00:00 2001 From: Praful Koppalkar <126236898+prafulkoppalkar@users.noreply.github.com> Date: Mon, 12 Feb 2024 14:22:29 +0530 Subject: [PATCH] fix: HS-2222: Missing Address state (#150) --- src/Components/DynamicFields.res | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Components/DynamicFields.res b/src/Components/DynamicFields.res index 32a09ff86..da01d1899 100644 --- a/src/Components/DynamicFields.res +++ b/src/Components/DynamicFields.res @@ -49,7 +49,7 @@ let make = ( }, [savedCards]) //<...>// - let fieldsArr = + let fieldsArr = React.useMemo3(() => { PaymentMethodsRecord.getPaymentMethodFields( paymentMethodType, requiredFields, @@ -59,7 +59,8 @@ let make = ( ) ->DynamicFieldsUtils.updateDynamicFields() ->Belt.SortArray.stableSortBy(PaymentMethodsRecord.sortPaymentMethodFields) - //<...>// + //<...>// + }, (requiredFields, isAllStoredCardsHaveName, isSavedCardFlow)) let {config, themeObj, localeString} = Recoil.useRecoilValueFromAtom(configAtom)