Skip to content

Commit

Permalink
fix(build): type redirect as string
Browse files Browse the repository at this point in the history
  • Loading branch information
jbperidypathtech committed Nov 8, 2023
1 parent 9f963b7 commit 1743d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/frontend/components/pages/Login/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const Login: NextPage = () => {
try {
await login(data);
if (![undefined, ''].includes(redirect)) {
return await router.push(redirect);
return await router.push(redirect as string);
}

return await router.push(Pages.Home);
Expand Down

0 comments on commit 1743d8d

Please sign in to comment.