Skip to content

Commit

Permalink
fix: null safety in perLanguage
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Oct 7, 2022
1 parent c09109a commit c0af0be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/notifications/NotifierUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ export function fromNow(d, now = Date.now) {
}

export const perLanguage = async (fn) =>
Promise.all(Object.entries(i18ns).map(async ([locale, i18n]) => fn({ locale, i18n })));
Promise.all(Object.entries(i18ns)?.map(async ([locale, i18n]) => fn({ locale, i18n })));

0 comments on commit c0af0be

Please sign in to comment.