diff --git a/src/pages/sign/index.tsx b/src/pages/sign/index.tsx index 55276de..dd31938 100644 --- a/src/pages/sign/index.tsx +++ b/src/pages/sign/index.tsx @@ -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) }