Skip to content

Commit cd52bb2

Browse files
committed
feat: added fallback
1 parent c387129 commit cd52bb2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const toastHandler = (error: Error | GraphQLFormattedError) => {
142142
console.error("[ERROR]", error)
143143
if (error && "errorCode" in error) {
144144
addIslandErrorNotification({
145-
message: ErrorCodeDescription[(error.errorCode as string)]
145+
message: ErrorCodeDescription[(error.errorCode as string)] ?? "Internal error"
146146
})
147147
} else {
148148
addIslandErrorNotification({

0 commit comments

Comments
 (0)