Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
fix: when uptime info is not available, don't imply the node itself i…
Browse files Browse the repository at this point in the history
…s not available
  • Loading branch information
mvines committed Aug 16, 2019
1 parent f5d7d60 commit 2b0726c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v2/components/Validators/Table/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const ValidatorsTable = ({separate}: {separate: boolean}) => {
</TableCell>
<TableCell>{(stake && (stake * LAMPORT_SOL_RATIO).toFixed(8)) || 'N/A'}</TableCell>
<TableCell>{commission || 'N/A'}</TableCell>
<TableCell>{(uptime && uptime + '%') || 'Node Unavailable'}</TableCell>
<TableCell>{(uptime && uptime + '%') || 'Unavailable'}</TableCell>
</TableRow>
);
};
Expand All @@ -68,7 +68,7 @@ const ValidatorsTable = ({separate}: {separate: boolean}) => {
</Grid>
<Grid item xs={4} zeroMinWidth>
<div className={classes.cardTitle}>Uptime</div>
<div>{(uptime && uptime + '%') || 'Node Unavailable'}</div>
<div>{(uptime && uptime + '%') || 'Unavailable'}</div>
</Grid>
</Grid>
</div>
Expand Down

0 comments on commit 2b0726c

Please sign in to comment.