mirror of
https://github.com/supabase/supabase.git
synced 2026-10-19 08:09:11 +03:00
Merge pull request #14616 from supabase/fix/v2-payment-method-selection
fix: payment method selection when adding first card
This commit is contained in:
1 file changed
+4
-1
@@ -147,7 +147,10 @@ const PaymentMethodSelection = ({
|
||||
category: 'success',
|
||||
message: 'Successfully added new payment method',
|
||||
})
|
||||
await refetchPaymentMethods()
|
||||
const { data } = await refetchPaymentMethods()
|
||||
if (!selectedPaymentMethod && data?.length) {
|
||||
onSelectPaymentMethod(data[0].id)
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
|
||||
Reference in new issue
Block a user