We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9a379a commit 27f3704Copy full SHA for 27f3704
packages/react-components/src/components/payment_methods/PaymentMethod.tsx
@@ -192,7 +192,7 @@ export function PaymentMethod({
192
void autoSelect()
193
}
194
195
- }, [order?.payment_source != null])
+ }, [!isEmpty(paymentMethods), order?.payment_source != null])
196
useEffect(() => {
197
if (paymentMethods) {
198
const isSingle = paymentMethods.length === 1
0 commit comments