fix: next signer and spinner anim duration

This commit is contained in:
enes 2024-08-14 14:34:51 +02:00
parent 3743a30ef6
commit d8adb2c744
2 changed files with 6 additions and 7 deletions

View File

@ -1,5 +1,5 @@
.spin { .spin {
animation: spin 1s linear infinite; animation: spin 5s linear infinite;
} }
@keyframes spin { @keyframes spin {

View File

@ -199,17 +199,16 @@ export const useSigitMeta = (meta: Meta): FlatMeta => {
} }
}) })
signers
.filter((s) => !parsedSignatureEventsMap.has(s))
.forEach((s) => signerStatusMap.set(s, SignStatus.Pending))
// Get the first signer that hasn't signed
const nextSigner = signers.find((s) => !parsedSignatureEventsMap.has(s)) const nextSigner = signers.find((s) => !parsedSignatureEventsMap.has(s))
if (nextSigner) { if (nextSigner) {
signerStatusMap.set(nextSigner, SignStatus.Awaiting) signerStatusMap.set(nextSigner, SignStatus.Awaiting)
} }
signers
.filter((s) => !(s in meta.docSignatures))
.forEach((s) =>
signerStatusMap.set(s as `npub1${string}`, SignStatus.Pending)
)
setSignersStatus(Object.fromEntries(signerStatusMap)) setSignersStatus(Object.fromEntries(signerStatusMap))
setParsedSignatureEvents(Object.fromEntries(parsedSignatureEventsMap)) setParsedSignatureEvents(Object.fromEntries(parsedSignatureEventsMap))