mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-25 12:35:15 +00:00
DailySorted should not break pinia utils
This commit is contained in:
parent
0361fc1424
commit
72be3103dc
|
@ -163,7 +163,9 @@ export function createBotSubStore(botId: string, botName: string) {
|
||||||
dailyStatsSorted: (state): DailyReturnValue => {
|
dailyStatsSorted: (state): DailyReturnValue => {
|
||||||
return {
|
return {
|
||||||
...state.dailyStats,
|
...state.dailyStats,
|
||||||
data: Object.values(state.dailyStats.data).sort((a, b) => (a.date > b.date ? 1 : -1)),
|
data: state.dailyStats.data
|
||||||
|
? Object.values(state.dailyStats.data).sort((a, b) => (a.date > b.date ? 1 : -1))
|
||||||
|
: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user