Skip to content

Commit c5a2cdb

Browse files
committed
Fix Cannot read properties of undefined (reading 'message') in errorParser.tsx (#5066)
Fixes: DASH-326
1 parent 5dd0c91 commit c5a2cdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/dashboard/src/utils/errorParser.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function parseErrorCode(
123123
}
124124

125125
return (
126-
error?.data.message ||
126+
error?.data?.message ||
127127
error?.message ||
128128
"An internal error occurred with your transaction."
129129
);

0 commit comments

Comments
 (0)