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:
Till JS 2026-04-16 15:34:00 +02:00
parent 57c2bdb2ad
commit 9dd2c64de2

View file

@ -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');