console error when performance data doesn't load
This commit is contained in:
parent
ef46c583f6
commit
4ec95495d5
|
@ -410,10 +410,11 @@ const mangoStore = create<MangoStore>()(
|
||||||
state.mangoAccount.stats.performance.data = stats.reverse()
|
state.mangoAccount.stats.performance.data = stats.reverse()
|
||||||
state.mangoAccount.stats.performance.loading = false
|
state.mangoAccount.stats.performance.loading = false
|
||||||
})
|
})
|
||||||
} catch {
|
} catch (e) {
|
||||||
set((state) => {
|
set((state) => {
|
||||||
state.mangoAccount.stats.performance.loading = false
|
state.mangoAccount.stats.performance.loading = false
|
||||||
})
|
})
|
||||||
|
console.error('Failed to load account performance data', e)
|
||||||
notify({
|
notify({
|
||||||
title: 'Failed to load account performance data',
|
title: 'Failed to load account performance data',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
|
|
Loading…
Reference in New Issue