From 0b86fea8c6e0e070dffcab79f92b6994657d3cee Mon Sep 17 00:00:00 2001 From: abefernan <44572727+abefernan@users.noreply.github.com> Date: Thu, 8 Jun 2023 16:13:12 +0200 Subject: [PATCH] Fix signatures calc --- components/dataViews/ThresholdInfo.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/dataViews/ThresholdInfo.tsx b/components/dataViews/ThresholdInfo.tsx index 0271e0c..46d92b7 100644 --- a/components/dataViews/ThresholdInfo.tsx +++ b/components/dataViews/ThresholdInfo.tsx @@ -17,7 +17,8 @@ const ThresholdInfo = ({ signatures, pubkey }: Props) => { setUrlToCopy(urlWithoutQuery); }, []); - const remainingSignatures = Number(pubkey.value.threshold) - signatures.length; + const signaturesDiff = Number(pubkey.value.threshold) - signatures.length; + const remainingSignatures = signaturesDiff > 0 ? signaturesDiff : 0; if (!remainingSignatures) return null; return (