fix: show error if decrypt fails

This commit is contained in:
enes 2024-10-11 16:43:55 +02:00
parent 9dd190d65b
commit cc382f0726

View File

@ -536,7 +536,11 @@ export const SignPage = () => {
setIsLoading(true)
const arrayBuffer = await decrypt(selectedFile)
if (!arrayBuffer) return
if (!arrayBuffer) {
setIsLoading(false)
toast.error('Error decrypting file')
return
}
handleDecryptedArrayBuffer(arrayBuffer)
}