fix: Opening a sigit asks you to sign when you are not the next signer
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 46s
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 46s
This commit is contained in:
parent
d965e56f76
commit
ae3d461661
@ -47,12 +47,12 @@ export const DisplaySigit = ({
|
||||
const { extensions, isSame } = extractFileExtensions(Object.keys(fileHashes))
|
||||
|
||||
const currentUserNpub: string = usersPubkey ? hexToNpub(usersPubkey) : ''
|
||||
const currentUserSigned =
|
||||
signersStatus[currentUserNpub as `npub1${string}`] === SignStatus.Signed
|
||||
const currentUserNextSigner =
|
||||
signersStatus[currentUserNpub as `npub1${string}`] === SignStatus.Awaiting
|
||||
|
||||
return (
|
||||
<div className={styles.itemWrapper}>
|
||||
{signedStatus === SigitStatus.Complete || currentUserSigned ? (
|
||||
{signedStatus === SigitStatus.Complete || !currentUserNextSigner ? (
|
||||
<Link
|
||||
to={`${appPublicRoutes.verify}/${sigitCreateId}`}
|
||||
className={styles.insetLink}
|
||||
|
Loading…
Reference in New Issue
Block a user