fix: zipUrls
This commit is contained in:
parent
6dab22a495
commit
cc2b6fa124
@ -167,6 +167,7 @@ export const SignPage = () => {
|
||||
createSignatureContent.markConfig,
|
||||
usersPubkey!
|
||||
)
|
||||
// TODO figure out why markConfig does not contain the usersPubkey when multiple signer
|
||||
const signedMarks = extractMarksFromSignedMeta(meta)
|
||||
const currentUserMarks = getCurrentUserMarks(metaMarks, signedMarks)
|
||||
const otherUserMarks = findOtherUserMarks(signedMarks, usersPubkey!)
|
||||
|
@ -408,7 +408,7 @@ export const VerifyPage = () => {
|
||||
setLoadingSpinnerDesc('Fetching file from file server')
|
||||
|
||||
for (let i = 0; i < zipUrls.length; i++) {
|
||||
const zipUrl = ''
|
||||
const zipUrl = zipUrls[i]
|
||||
const isLastZipUrl = i === zipUrls.length - 1
|
||||
|
||||
try {
|
||||
@ -427,10 +427,11 @@ export const VerifyPage = () => {
|
||||
encryptedArrayBuffer,
|
||||
encryptionKey
|
||||
).catch((err) => {
|
||||
const error = err.message
|
||||
? `Decryption error: ${err.message}`
|
||||
: 'An error occurred in decrypting file.'
|
||||
console.error('Error in decryption:>> ', err)
|
||||
toast.error(
|
||||
err.message || 'An error occurred in decrypting file.'
|
||||
)
|
||||
toast.error(error)
|
||||
return null // Continue iteration for next zipUrl
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user