Skip to content

Commit

Permalink
fix(ramp): undefined payment method (#8801)
Browse files Browse the repository at this point in the history
  • Loading branch information
wachunei authored Mar 1, 2024
1 parent 6fe35ba commit 178cf04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/UI/Ramp/hooks/usePaymentMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function usePaymentMethods() {

const [{ data: paymentMethods, isFetching, error }, queryGetPaymentMethods] =
useSDKMethod(paymentMethodsMethod, selectedRegion?.id);
useEffect(() => setAllowedMethodIds(undefined), [selectedRegion]);
useEffect(() => setAllowedMethodIds(undefined), [selectedRegion?.id]);

useEffect(() => {
if (!isFetching && !error && paymentMethods && selectedRegion) {
Expand Down

0 comments on commit 178cf04

Please sign in to comment.