fix: START GAME shows shop modal instead of error when payment required

When both payment modes are enabled (mixed mode) and user has no credits
or confirmed payment, the 'choose_payment' action was falling through to
the error case. Now 'choose_payment' triggers the payment options modal
just like 'make_payment' and 'purchase_credits' do.
This commit is contained in:
jwinterm
2026-01-13 17:46:59 -05:00
parent 0c2d44d429
commit e8e0405485
+2 -2
View File
@@ -520,8 +520,8 @@ class SocketHandlers {
}
if (!canStart.allowed) {
// Trigger payment request automatically
if (canStart.action === 'make_payment' || canStart.action === 'purchase_credits') {
// Trigger payment request automatically for any payment-related action
if (canStart.action === 'make_payment' || canStart.action === 'purchase_credits' || canStart.action === 'choose_payment') {
await this.paymentHandlers.createAndShowPaymentRequest(socket);
return;
}