Skip to content

Commit 060b4a4

Browse files
committed
fix: fmt
1 parent d2b040d commit 060b4a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/login/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default function LoginPage() {
4444
if (response.ok) {
4545
setPassword(""); // Clear password from memory
4646
// Force a full page reload to reset AuthGuard state
47-
window.location.href = "/dashboard/dashboard";
47+
window.location.href = "/dashboard/dashboard";
4848
} else {
4949
const data = await response.json();
5050
setError(data.error || "Authentication failed. Please try again.");

src/components/dashboard/logout-button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ export default function LogoutButton() {
1717

1818
if (response.ok) {
1919
// Force reload to clear all state and redirect to login
20-
// Next.js basePath handles the redirect automatically
21-
window.location.href = "/dashboard/login";
20+
// Next.js basePath handles the redirect automatically
21+
window.location.href = "/dashboard/login";
2222
}
2323
} catch (error) {
2424
console.error("Logout failed:", error);

0 commit comments

Comments
 (0)