mirror of
https://github.com/Such-Software/wownerogue.git
synced 2026-10-19 07:08:33 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user