mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:21:10 +02:00
fix(credits): replace octal literal placeholders with real toast messages
Three toast.success('\1') calls broke Vite's strict-mode parser on
startup. Replaced with proper German messages: purchase success,
cancel confirmation, reactivation confirmation.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
57c2bdb2ad
commit
9dd2c64de2
1 changed files with 3 additions and 3 deletions
|
|
@ -138,7 +138,7 @@
|
|||
const canceled = params.get('canceled');
|
||||
|
||||
if (success === 'true') {
|
||||
toast.success('\1');
|
||||
toast.success('Credits erfolgreich gekauft!');
|
||||
history.replaceState({}, '', '/');
|
||||
} else if (canceled === 'true') {
|
||||
toast.error('Kauf wurde abgebrochen');
|
||||
|
|
@ -304,7 +304,7 @@
|
|||
cancelingSub = true;
|
||||
try {
|
||||
await subscriptionsService.cancelSubscription();
|
||||
toast.success('\1');
|
||||
toast.success('Abo erfolgreich gekündigt');
|
||||
await loadData();
|
||||
} catch (e) {
|
||||
toast.error(e instanceof Error ? e.message : 'Fehler beim Kündigen');
|
||||
|
|
@ -317,7 +317,7 @@
|
|||
reactivatingSub = true;
|
||||
try {
|
||||
await subscriptionsService.reactivateSubscription();
|
||||
toast.success('\1');
|
||||
toast.success('Abo erfolgreich reaktiviert');
|
||||
await loadData();
|
||||
} catch (e) {
|
||||
toast.error(e instanceof Error ? e.message : 'Fehler beim Reaktivieren');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue