Skip to content

Commit

Permalink
fix: all chain chart broken (#342)
Browse files Browse the repository at this point in the history
Signed-off-by: Nam Nguyen <nam.nguyen@kyber.network>

Signed-off-by: Nam Nguyen <nam.nguyen@kyber.network>
  • Loading branch information
namgold authored Oct 19, 2022
1 parent 1146541 commit 8cef191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contexts/GlobalData.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ const getChartData = async (client, oldestDateToFetch) => {
}
}

if (data) {
if (data.length) {
let dayIndexSet = new Set()
let dayIndexArray = []
const oneDay = 24 * 60 * 60
Expand Down

0 comments on commit 8cef191

Please sign in to comment.