diff --git a/plugins/client-resources/src/index.ts b/plugins/client-resources/src/index.ts index 9bd26dd46f..a4d0a24ed5 100644 --- a/plugins/client-resources/src/index.ts +++ b/plugins/client-resources/src/index.ts @@ -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,