Skip to content

Commit 2afc109

Browse files
committed
fix: param casting, assignment
1 parent c6b4ee7 commit 2afc109

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

apps/etno/src/components/EtnoHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const router = useRouter();
100100
101101
const tryLogout = async () => {
102102
const response = await logout();
103-
if (response.status = 200) {
103+
if (response.status === 200) {
104104
router.push({ name: 'Explore' });
105105
}
106106
};

apps/etno/src/router/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@ const routes = [
4747
path: '/reset-password',
4848
component: ResetPassword,
4949
props: (route: RouteLocationNormalized) => ({
50-
email: route.query.email,
51-
token: route.query.token,
50+
email: route.query.email as string ?? '',
51+
token: route.query.token as string ?? '',
5252
}),
5353
},
5454
{
5555
name: 'SetupAccount',
5656
path: '/setup-account',
5757
component: SetupAccountView,
5858
props: (route: RouteLocationNormalized) => ({
59-
email: route.query.email,
60-
token: route.query.token,
59+
email: route.query.email as string ?? '',
60+
token: route.query.token as string ?? '',
6161
}),
6262
},
6363
{

0 commit comments

Comments
 (0)