mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-30 04:05:39 +00:00
UBERF-4886 (#4335)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
b84aa01534
commit
8900b1e4e9
@ -72,15 +72,17 @@ export default async () => {
|
|||||||
load: async () => {
|
load: async () => {
|
||||||
if (typeof localStorage !== 'undefined') {
|
if (typeof localStorage !== 'undefined') {
|
||||||
const storedValue = localStorage.getItem('platform.model') ?? null
|
const storedValue = localStorage.getItem('platform.model') ?? null
|
||||||
const model = storedValue != null ? JSON.parse(storedValue) : undefined
|
try {
|
||||||
if (token !== model?.token) {
|
const model = storedValue != null ? JSON.parse(storedValue) : undefined
|
||||||
return {
|
if (token !== model?.token) {
|
||||||
full: false,
|
return {
|
||||||
transactions: [],
|
full: false,
|
||||||
hash: []
|
transactions: [],
|
||||||
|
hash: []
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
return model.model
|
||||||
return model.model
|
} catch {}
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
full: true,
|
full: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user