Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
bug: signing fails in brave (#3389)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmv08 committed Feb 1, 2022
1 parent 39ce7a3 commit e736bb5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/logic/safe/transactions/offchainSigner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ const getSupportedSigners = (isHW: boolean, safeVersion: string) => {
return signers
}

const isKeystoneError = (err: Error): boolean => {
return err.message.startsWith('#ktek_error')
const isKeystoneError = (err: unknown): boolean => {
if (err instanceof Error) {
return err.message?.startsWith('#ktek_error')
}

return false
}

export const tryOffChainSigning = async (
Expand Down

0 comments on commit e736bb5

Please sign in to comment.