Skip to content

Commit de13a1a

Browse files
committed
Fix Nan bug in transactions widget
1 parent f962f5b commit de13a1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/widgets/TransactionsWidget.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const getPercentageRatio = (v) => {
8686
}
8787
8888
const getSectorName = (item) => {
89-
return DateTime.fromISO(item.time).hour
89+
return item.time ? DateTime.fromISO(item.time).hour : DateTime.now().hour
9090
}
9191
</script>
9292

0 commit comments

Comments
 (0)