fix: add valid data to gauges
This commit is contained in:
parent
da0880fc84
commit
6e7e70434d
|
@ -26,14 +26,14 @@ const KeyGenerationSyncCard = ({ synced, total, title, color }: KeyGenerationSyn
|
||||||
<StandardGauge
|
<StandardGauge
|
||||||
data={[
|
data={[
|
||||||
{
|
{
|
||||||
id: 'storage',
|
id: title,
|
||||||
label: 'Used',
|
label: title,
|
||||||
value: synced,
|
value: synced,
|
||||||
color: color,
|
color: color,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'storage',
|
id: 'free',
|
||||||
label: 'Free',
|
label: 'free',
|
||||||
value: total - synced || 1,
|
value: total - synced || 1,
|
||||||
color: '#E7EAEE',
|
color: '#E7EAEE',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue