Merge pull request #14616 from supabase/fix/v2-payment-method-selection

fix: payment method selection when adding first card
This commit is contained in:
Kevin Grüneberg authored and GitHub committed 2023-05-29 10:25:00 +02:00
commit fe94458085
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)
}
}}
/>
</>