Skip to content

Commit

Permalink
regions fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Szegoo committed Oct 4, 2024
1 parent 8c6e89e commit ce70352
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@polkadot/ui-keyring": "3.6.6",
"@polkadot/util": "12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@region-x/components": "^0.1.14",
"@region-x/components": "^0.1.15",
"@types/humanize-duration": "^3.27.3",
"@vercel/analytics": "^1.2.2",
"apexcharts": "^3.49.1",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Regions/RegionMetaCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const RegionMetaCard = ({ active, regionMetadata }: RegionMetaCardProps)
regionStart: getRelativeTimeString(beginTimestamp),
regionEnd: getRelativeTimeString(endTimestamp),
coreIndex: region.getCore(),
consumed: regionMetadata.consumed,
consumed: Number(parseFloat((regionMetadata.consumed * 100).toString()).toFixed(2)),
chainLabel: locationToLabel(location),
chainColor: location === RegionLocation.CORETIME_CHAIN ? 'purpleDark' : 'blueDark',
coreOcupaccy: regionMetadata.coreOccupancy * 100,
Expand Down
3 changes: 2 additions & 1 deletion src/pages/regions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,14 @@ const Dashboard = () => {
>
<Box
sx={{
width: '100%',
display: 'flex',
justifyContent: 'flex-start',
gap: '2rem',
'::-webkit-scrollbar': {
display: 'none',
},
maxWidth: '70vw',
flexWrap: 'wrap',
}}
>
{status !== ContextStatus.LOADED && (
Expand Down

0 comments on commit ce70352

Please sign in to comment.