Skip to content

Commit

Permalink
🐛 - fix: fix a bug that could case an error to be thrown when attempt…
Browse files Browse the repository at this point in the history
…ing to use an uncompiled translation
  • Loading branch information
svenvandescheur committed Feb 12, 2024
1 parent 6d376e3 commit 8539a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/i18n/useIntl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const getLocalizedFallbackIntl = (
// messages not loaded.
}
const message =
messages[descriptor.id || ""].defaultMessage ||
messages[descriptor.id || ""]?.defaultMessage ||
descriptor.defaultMessage;
return formatMessage(message, context);
},
Expand Down

0 comments on commit 8539a21

Please sign in to comment.