Skip to content

Commit

Permalink
fix: app update (#1196)
Browse files Browse the repository at this point in the history
Co-authored-by: iGroza <[email protected]>
  • Loading branch information
iGroza and iGroza authored Aug 4, 2023
1 parent 2bbb259 commit c6abb22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/event-actions/on-need-update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function onNeedUpdate() {
{
text: getText(I18N.newUpdateAccept),
onPress: openStorePage,
style: 'destructive',
isPreferred: true,
},
],
);
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/check-app-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function checkNeedUpdate() {
android: RemoteConfig.get('android_version'),
});
const result = compareVersions(appVersion, remoteVersion!);
return result !== VersionComparisonResult.Newer;
return result === VersionComparisonResult.Newer;
} catch (err) {
Logger.captureException(err, 'checkNeedUpdate');
return false;
Expand Down

0 comments on commit c6abb22

Please sign in to comment.