Skip to content

Commit

Permalink
Merge pull request #132 from cosmos/fix/remaining-signatures-ui
Browse files Browse the repository at this point in the history
Fix signatures UI
  • Loading branch information
abefernan authored Jun 12, 2023
2 parents 9253c96 + 39ec8f4 commit d16bdc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/dataViews/ThresholdInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const ThresholdInfo = ({ signatures, pubkey }: Props) => {
setUrlToCopy(urlWithoutQuery);
}, []);

const remainingSignatures = Number(pubkey.value.threshold) - signatures.length;
const remainingSignatures = Math.max(Number(pubkey.value.threshold) - signatures.length, 0);
if (!remainingSignatures) return null;

return (
Expand Down

1 comment on commit d16bdc4

@vercel
Copy link

@vercel vercel bot commented on d16bdc4 Jun 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.