UBERF-4886 (#4335)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2024-01-10 18:54:58 +07:00
committed by GitHub
parent b84aa01534
commit 8900b1e4e9
+10 -8
View File
@@ -72,15 +72,17 @@ export default async () => {
load: async () => {
if (typeof localStorage !== 'undefined') {
const storedValue = localStorage.getItem('platform.model') ?? null
const model = storedValue != null ? JSON.parse(storedValue) : undefined
if (token !== model?.token) {
return {
full: false,
transactions: [],
hash: []
try {
const model = storedValue != null ? JSON.parse(storedValue) : undefined
if (token !== model?.token) {
return {
full: false,
transactions: [],
hash: []
}
}
}
return model.model
return model.model
} catch {}
}
return {
full: true,