mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-21 23:53:52 +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 => {
|
||||
return {
|
||||
...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