console error when performance data doesn't load

This commit is contained in:
tjs 2022-12-02 18:27:08 -05:00
parent ef46c583f6
commit 4ec95495d5
1 changed files with 2 additions and 1 deletions

View File

@ -410,10 +410,11 @@ const mangoStore = create<MangoStore>()(
state.mangoAccount.stats.performance.data = stats.reverse()
state.mangoAccount.stats.performance.loading = false
})
} catch {
} catch (e) {
set((state) => {
state.mangoAccount.stats.performance.loading = false
})
console.error('Failed to load account performance data', e)
notify({
title: 'Failed to load account performance data',
type: 'error',