Skip to content

Commit 27f3704

Browse files
committed
Fix show payment methods
1 parent c9a379a commit 27f3704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-components/src/components/payment_methods/PaymentMethod.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export function PaymentMethod({
192192
void autoSelect()
193193
}
194194
}
195-
}, [order?.payment_source != null])
195+
}, [!isEmpty(paymentMethods), order?.payment_source != null])
196196
useEffect(() => {
197197
if (paymentMethods) {
198198
const isSingle = paymentMethods.length === 1

0 commit comments

Comments
 (0)