Hotfix renewtoken not working as expected
gitea/worker-time-control/pipeline/pr-master This commit looks good Details

Había un error en el tipo de datos a la hora de hacer la comprobación.
This commit is contained in:
Javier Segarra 2024-02-12 11:36:26 +00:00
parent e79c767de0
commit ced01beaea
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ function getTokenConfig() {
}
function checkValidity() {
const created = localStorage.getItem('created');
const created = +localStorage.getItem('created');
const ttl = localStorage.getItem('ttl');
if (isCheckingToken || !created) return;