Skip to content

Commit

Permalink
fix: incorrect condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ChingCdesu committed Sep 30, 2023
1 parent b5ee414 commit 7887366
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "supernode-frontend",
"private": true,
"version": "1.0.0-alpha.6",
"version": "1.0.0-alpha.7",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion src/store/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const useAuthState = createGlobalState(() => {
});

const isExpired = computed(
() => tokenExpiredAt.value && tokenExpiredAt.value > new Date()
() => !tokenExpiredAt.value || tokenExpiredAt.value < new Date()
);

return { tokenExpiredAt, isExpired };
Expand Down

0 comments on commit 7887366

Please sign in to comment.