Skip to content

Commit

Permalink
fix: threshold values in key detail page
Browse files Browse the repository at this point in the history
  • Loading branch information
devpavan04 committed Oct 5, 2023
1 parent d54344b commit bac54ff
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions apps/stats-dapp/src/containers/KeyDetail/KeyDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,10 @@ export const KeyDetail = forwardRef<HTMLDivElement, KeyDetailProps>(
)}
>
<Typography variant="h4" fw="bold" className="block">
{keyDetail.keyGenThreshold}
{keyDetail.signatureThreshold ?? '--'}
</Typography>
<Typography variant="body1" fw="bold" className="block">
Threshold
Signature Threshold
</Typography>
</div>

Expand All @@ -318,13 +318,11 @@ export const KeyDetail = forwardRef<HTMLDivElement, KeyDetailProps>(
)}
>
<Typography variant="h4" fw="bold" className="block">
{keyDetail.numberOfValidators ?? '--'}
{keyDetail.keyGenThreshold}
</Typography>
<Typography variant="body1" fw="bold" className="block">
Keygen Threshold
</Typography>
{typeof keyDetail.numberOfValidators === 'number' && (
<Typography variant="body1" fw="bold" className="block">
{keyDetail.numberOfValidators > 1 ? 'Authorities' : 'Authority'}
</Typography>
)}
</div>
</div>

Expand Down

0 comments on commit bac54ff

Please sign in to comment.