♻ Refactor orderStats
✏ Fix daily typo
This commit is contained in:
1 parent
d5ed841c9c
commit
5f7a4e6ff2
8 files changed
+26
-28
No files matched your search
@@ -77,7 +77,7 @@ export const Stats = () => {
|
||||
/>
|
||||
<h3>Ordre per ukedag</h3>
|
||||
<Bar
|
||||
data={(orderData?.orderStats?.dayly || []).map((stat: OrderStatsByTime) => ({
|
||||
data={(orderData?.orderStats?.daily || []).map((stat: OrderStatsByTime) => ({
|
||||
/* @ts-expect-error Here, stat.period can only be a key in days range. */
|
||||
id: days[stat.period],
|
||||
label: stat.period,
|
||||
|
||||
Reference in new issue
Block a user