diff --git a/src/api/client.ts b/src/api/client.ts index 04aa0cf..21f580b 100644 --- a/src/api/client.ts +++ b/src/api/client.ts @@ -17,7 +17,13 @@ async function req(method: string, path: string, body?: unknown): Promise {}); + window.location.href = "/login"; + } throw new ApiError(401, "unauthorized"); } if (!res.ok) throw new ApiError(res.status, await res.text()); diff --git a/src/app/(app)/layout.tsx b/src/app/(app)/layout.tsx index 8292f93..2a89162 100644 --- a/src/app/(app)/layout.tsx +++ b/src/app/(app)/layout.tsx @@ -11,7 +11,7 @@ export default function AppLayout({ children }: { children: ReactNode }) {
-
+
{children}
diff --git a/src/features/home/DashboardView.tsx b/src/features/home/DashboardView.tsx index 2047fd9..6ae8c3c 100644 --- a/src/features/home/DashboardView.tsx +++ b/src/features/home/DashboardView.tsx @@ -73,6 +73,7 @@ export function DashboardView() { +
{/* Safe-to-spend hero (green): how much is left to spend this month after committed obligations and what's already been spent. */}
+ ); } diff --git a/src/features/profile/strings.ts b/src/features/profile/strings.ts index 068b059..0b7b2ea 100644 --- a/src/features/profile/strings.ts +++ b/src/features/profile/strings.ts @@ -14,7 +14,7 @@ export const profileStrings = { menu: { settings: "Тохиргоо", categories: "Ангилал", - subscriptions: "Subscriptions", + subscriptions: "Захиалга", }, display: { title: "Дэлгэц ба нууцлал",