Skip to content

Commit

Permalink
Nill check error.data
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrencev committed Dec 21, 2024
1 parent 3b5ba91 commit 584a7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/keychain/src/utils/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export function parseValidationError(error: ControllerError): {
}
| string;
} {
const maxFeeMatch = error.data.match(
const maxFeeMatch = error.data?.match(
/Max fee \((\d+)\) exceeds balance \((\d+)\)/,
);
if (maxFeeMatch) {
Expand Down

0 comments on commit 584a7a6

Please sign in to comment.