Remove unnecessary check for key
This commit is contained in:
@@ -87,7 +87,6 @@ export function useTranslate({key}: {key: string}) {
|
||||
|
||||
useFocusEffect(
|
||||
useCallback(() => {
|
||||
if (!key) return
|
||||
const cleanup = context.acquireTranslation(key)
|
||||
return cleanup
|
||||
}, [key, context]),
|
||||
|
||||
Reference in New Issue
Block a user