Update frontend/src/components/SessionLogoutTimeout.vue

Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
This commit is contained in:
mahula 2022-07-13 15:36:40 +02:00 committed by GitHub
parent 1d1cc7e960
commit 2302da9054
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,8 +93,7 @@ export default {
const remainingSecs = Math.floor(
(new Date(this.$store.state.tokenTime * 1000).getTime() - this.now) / 1000,
)
if (remainingSecs <= 0) return 0
return remainingSecs
return remainingSecs <= 0 ? 0 : remainingSecs
},
},
beforeDestroy() {