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 { extensions, isSame } = extractFileExtensions(Object.keys(fileHashes))
|
||||||
|
|
||||||
const currentUserNpub: string = usersPubkey ? hexToNpub(usersPubkey) : ''
|
const currentUserNpub: string = usersPubkey ? hexToNpub(usersPubkey) : ''
|
||||||
const currentUserSigned =
|
const currentUserNextSigner =
|
||||||
signersStatus[currentUserNpub as `npub1${string}`] === SignStatus.Signed
|
signersStatus[currentUserNpub as `npub1${string}`] === SignStatus.Awaiting
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.itemWrapper}>
|
<div className={styles.itemWrapper}>
|
||||||
{signedStatus === SigitStatus.Complete || currentUserSigned ? (
|
{signedStatus === SigitStatus.Complete || !currentUserNextSigner ? (
|
||||||
<Link
|
<Link
|
||||||
to={`${appPublicRoutes.verify}/${sigitCreateId}`}
|
to={`${appPublicRoutes.verify}/${sigitCreateId}`}
|
||||||
className={styles.insetLink}
|
className={styles.insetLink}
|
||||||
|
Loading…
Reference in New Issue
Block a user