修复编译
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
<div class="items-center flex flex-row gap-2">
|
||||
<span class="text-lg">Scale: </span>
|
||||
{#if $setScaleMutation.isLoading}
|
||||
<button class="btn btn-square btn-sm loading" />
|
||||
<button class="btn btn-square btn-sm loading" />
|
||||
{:else}
|
||||
<button
|
||||
class="btn btn-square btn-sm"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Cookies from "js-cookie";
|
||||
import jwt_decode from "jwt-decode";
|
||||
import { jwtDecode} from "jwt-decode";
|
||||
import {refreshAuthToken} from "./api";
|
||||
|
||||
const AuthDataCookieKey = "auth_data";
|
||||
@@ -14,7 +14,7 @@ export const readAuthCookie = () => {
|
||||
const val = Cookies.get(AuthDataCookieKey);
|
||||
if (!val) return null;
|
||||
|
||||
const payload = jwt_decode(val);
|
||||
const payload = jwtDecode(val);
|
||||
const timeLeft = timeTillExpiry(payload);
|
||||
if (timeLeft < 0) return null;
|
||||
return payload;
|
||||
|
||||
Reference in New Issue
Block a user