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