Skip to content

Commit 93bcd3c

Browse files
committed
chore: missing optional chain
1 parent 2fc4d42 commit 93bcd3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/ts/event-handlers/global.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ window.onunhandledrejection = function (e): void {
5858
}
5959
void log("error", {
6060
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
61-
error: (e.reason.stack ?? "") as string,
61+
error: (e.reason?.stack ?? "") as string,
6262
});
6363
};

0 commit comments

Comments
 (0)