Skip to content

Commit

Permalink
fix: next button not enabled for first time in edit ad
Browse files Browse the repository at this point in the history
  • Loading branch information
nada-deriv committed Jul 31, 2024
1 parent 58956db commit f1426e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/my-ads/screens/CreateEditAd/CreateEditAd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ const CreateEditAd = () => {
getValues,
handleSubmit,
setValue,
trigger,
} = methods;
useEffect(() => {
if (Object.keys(countryList as object).length > 0 && getValues('preferred-countries').length === 0) {
Expand Down Expand Up @@ -211,6 +212,7 @@ const CreateEditAd = () => {
) ?? [];
setValue('payment-method', paymentMethodKeys);
}
trigger();
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[paymentMethodList, countryList]
Expand Down

0 comments on commit f1426e8

Please sign in to comment.