From 323c06c9099d4730941c940c5157211541ad5551 Mon Sep 17 00:00:00 2001 From: SwiftHawk Date: Tue, 14 May 2024 17:14:53 +0500 Subject: [PATCH] chore: quick fix --- src/pages/verify/index.tsx | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/pages/verify/index.tsx b/src/pages/verify/index.tsx index 6572ebc..fc5fa2d 100644 --- a/src/pages/verify/index.tsx +++ b/src/pages/verify/index.tsx @@ -539,12 +539,7 @@ export const VerifyPage = () => { )} {meta && signedStatus === SignedStatus.User_Is_Not_Next_Signer && ( - <> - - - Awaiting signature by {hexToNpub(nextSinger)} - - + )} {meta && signedStatus === SignedStatus.User_Is_Next_Signer && ( @@ -750,20 +745,14 @@ const DisplayMeta = ({ meta, nextSigner }: DisplayMetaProps) => { let signedStatus = '-' - if (user.role === UserRole.viewer) { - signedStatus = '-' - } else { + if (user.role === UserRole.signer) { // check if user has signed the document if (user.pubkey in meta.signedEvents) { signedStatus = 'Signed' } // check if user is the next signer else if (user.pubkey === nextSigner) { - signedStatus === 'Next Singer' - } - // if none of the above condition is true then it means user's signature is pending - else { - signedStatus === 'Pending' + signedStatus = 'Awaiting Signature' } }