Skip to content

Commit eb42ec5

Browse files
author
Jovert Lota Palonpon
committed
fix
1 parent b9a157f commit eb42ec5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/js/Backoffice.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@ class Backoffice extends Component {
303303

304304
// Authenticate via Persistent Storage.
305305
const token = this.token();
306-
let expired = false;
306+
let expired = true;
307307

308-
if (token) {
308+
if (token.hasOwnProperty('expired_at')) {
309309
expired = token.expired_at < moment().format('YYYY-MM-DD hh:mm:ss');
310310
}
311311

0 commit comments

Comments
 (0)