ENH - refine banking experience

This commit is contained in:
Type
2026-08-07 13:03:48 +02:00
parent 082e16f465
commit 0bde681655
10 changed files with 104 additions and 157 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ describe('banking store', () => {
const banking = useBankingStore()
banking.overview = overview
await banking.perform('withdraw', 50000)
await banking.perform('transfer', 50000, 17)
expect(banking.overview).toEqual(overview)
expect(banking.error).toBe('insufficient_funds')
-12
View File
@@ -216,8 +216,6 @@ const defaultLocales: LocaleTree = {
recentPeriod: 'in recent activity',
actions: 'Banking actions',
send: 'Send',
deposit: 'Deposit',
withdraw: 'Withdraw',
accounts: 'Accounts',
bankAccount: 'Bank account',
cash: 'Cash',
@@ -249,16 +247,6 @@ const defaultLocales: LocaleTree = {
body: 'Transfer money from your bank account to an online player.',
submit: 'Send transfer',
},
deposit: {
title: 'Deposit cash',
body: 'Move cash from your wallet into your bank account.',
submit: 'Deposit cash',
},
withdraw: {
title: 'Withdraw cash',
body: 'Move money from your bank account into your wallet.',
submit: 'Withdraw cash',
},
},
errors: {
invalid_request: 'Enter a valid whole amount and player ID.',