Skip to content

Commit

Permalink
Update MLKitEntityExtraction.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nmajumder12 authored May 11, 2024
1 parent 76c095a commit ee54f7e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions MLKitEntityExtraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,7 @@ const isModelDownloaded = (language) => {
NativeMLKitEntityExtraction.isModelDownloaded(
isAndroid ? ENTITY_LANG_TAGS[language] : LANG_TAGS[language],
(v) => {
if (Platform.OS === 'ios') {
resolver(v === 1 ? true : false);
} else {
resolver(v);
}
resolver(v);
}
);
});
Expand Down

0 comments on commit ee54f7e

Please sign in to comment.