Commit 677662b
committed
frontend: set data source to hourly on mount if display is week
Our chart uses `daily` as its `source` default state value.
Instead, we need to make sure to set this `source` state to
the appropriate value according to the stored `chartDisplay`
in the context.
Other than as a best practice, this fixes an edge case bug.
Such as wrong data & difference displayed when user does the
following:
1. picks USD as default currency,
2. navigate to a different page,
3. and going back to account summary.1 parent 40f494b commit 677662b
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| |||
0 commit comments