Skip to content

Commit

Permalink
Merge 9097b5f into dcd9bf3
Browse files Browse the repository at this point in the history
  • Loading branch information
knor-el-snor committed Jun 20, 2019
2 parents dcd9bf3 + 9097b5f commit 93d7e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function parseErrors(error: any, translatorOptions?: TranslatorOptions) {

// if the translatedMessage equals the error code OR is undefined because not found
// fallback to default error message from errors
if (translatedMessage === error.i18n || translatedMessage === undefined) {
if (translatedMessage === error.i18n || translatedMessage == null) {
translatedMessage = error.message;
}
}
Expand Down

0 comments on commit 93d7e52

Please sign in to comment.