From 9dd2c64de2d92434297451c31d73bd3b0f7728a0 Mon Sep 17 00:00:00 2001 From: Till JS Date: Thu, 16 Apr 2026 15:34:00 +0200 Subject: [PATCH] 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) --- apps/mana/apps/web/src/lib/modules/credits/ListView.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/mana/apps/web/src/lib/modules/credits/ListView.svelte b/apps/mana/apps/web/src/lib/modules/credits/ListView.svelte index 8985eec34..97c94f6d8 100644 --- a/apps/mana/apps/web/src/lib/modules/credits/ListView.svelte +++ b/apps/mana/apps/web/src/lib/modules/credits/ListView.svelte @@ -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');