mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-13 20:06:33 +00:00
Update UptimeChart.tsx
This commit is contained in:
parent
203197fd55
commit
08c9da14ec
@ -184,11 +184,6 @@ type UptimeChartProps = {
|
||||
const keys = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten']
|
||||
|
||||
const updateMonthlyValues = (data: any, monthlyActivity: any) => {
|
||||
if (!Array.isArray(monthlyActivity) || monthlyActivity.length !== 12) {
|
||||
console.error('monthlyActivity should be an array with 12 values')
|
||||
return
|
||||
}
|
||||
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
const month = data[i]
|
||||
const activity = monthlyActivity[i]
|
||||
|
Loading…
x
Reference in New Issue
Block a user