Skip to content

Commit c79ebf6

Browse files
Merge pull request #140 from tundesobajo/master
Update utils.ts (#1)
2 parents 5f1f677 + 3e8b666 commit c79ebf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/translations/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function getTranslation<K extends keyof TranslationsType>(
3131
return fallback || key
3232
}
3333
const translation = translationsPerLocale[l][key]
34-
if (!translationForLocale) {
34+
if (!translation) {
3535
console.warn(
3636
`[react-native-paper-dates] ${locale} is registered, but ${key} is missing`
3737
)

0 commit comments

Comments
 (0)