Skip to content

Commit

Permalink
fix: use native window instead of nextjs router hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
debendraoli committed Nov 26, 2024
1 parent e0d8dd5 commit 6b4e4f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"js-cookie": "^3.0.5",
"moment": "^2.30.1",
"negotiator": "^0.6.4",
"next": "^14.2.5",
"next-auth": "^4.24.7",
"next": "^14.2.18",
"next-auth": "^4.24.10",
"next-nprogress-bar": "^2.3.15",
"react": "^18.3.1",
"react-bootstrap": "^2.10.6",
Expand All @@ -41,7 +41,7 @@
"devDependencies": {
"@types/js-cookie": "^3.0.6",
"@types/negotiator": "^0.6.3",
"@types/node": "^22.9.4",
"@types/node": "^22.10.0",
"@types/react": "^18.3.12",
"@types/react-copy-to-clipboard": "^5.0.7",
"@types/react-dom": "^18.3.1",
Expand Down
2 changes: 1 addition & 1 deletion src/app/(authentication)/login/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function Login({ callbackUrl }: { callbackUrl: string }) {
setError('Login failed')
return
}
router.push(url || '/')
window.location.href = url ?? callbackUrl
} catch (err) {
if (err instanceof Error) {
setError(err.message)
Expand Down

0 comments on commit 6b4e4f7

Please sign in to comment.