diff --git a/apps/manacore/apps/web/src/lib/api/credits.ts b/apps/manacore/apps/web/src/lib/api/credits.ts index f6e937b58..b1dd2bd13 100644 --- a/apps/manacore/apps/web/src/lib/api/credits.ts +++ b/apps/manacore/apps/web/src/lib/api/credits.ts @@ -9,15 +9,13 @@ import { getManaAuthUrl } from './config'; // Types export interface CreditBalance { balance: number; - freeCreditsRemaining: number; totalEarned: number; totalSpent: number; - dailyFreeCredits: number; } export interface CreditTransaction { id: string; - type: 'purchase' | 'usage' | 'refund' | 'bonus' | 'expiry' | 'adjustment'; + type: 'purchase' | 'usage' | 'refund' | 'gift'; status: 'pending' | 'completed' | 'failed' | 'cancelled'; amount: number; balanceBefore: number; diff --git a/apps/manacore/apps/web/src/lib/components/dashboard/widgets/CreditsWidget.svelte b/apps/manacore/apps/web/src/lib/components/dashboard/widgets/CreditsWidget.svelte index 465b030b3..65d490f92 100644 --- a/apps/manacore/apps/web/src/lib/components/dashboard/widgets/CreditsWidget.svelte +++ b/apps/manacore/apps/web/src/lib/components/dashboard/widgets/CreditsWidget.svelte @@ -53,10 +53,6 @@ {$_('dashboard.widgets.credits.available')} {formatCredits(data.balance)} -
Verfügbare Credits
@@ -170,14 +168,6 @@Gratis-Credits heute
-- {balance?.freeCreditsRemaining ?? 0} / {balance?.dailyFreeCredits ?? 5} -
-Gesamt erhalten
@@ -281,11 +271,23 @@