♻ Refactor orderStats

✏ Fix daily typo
This commit is contained in:
Nikolai R Kristiansen committed 2022-02-06 22:27:52 +01:00
1 parent d5ed841c9c
commit 5f7a4e6ff2
8 files changed
+26 -28

No files matched your search

+1 -1
View File
@@ -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,
@@ -8,7 +8,7 @@ query orderStats {
period
count
}
dayly {
daily {
period
count
}