Skip to content

Commit

Permalink
fix optional update issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Reza-deriv committed Feb 15, 2024
1 parent b38fd43 commit ef3a179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/update_checker/lib/src/bloc/update_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class UpdateBloc extends Bloc<UpdateEvent, UpdateState> {
final bool isMandatory = appBuildNumber < minVersion;

final bool isOptional =
appBuildNumber < latestVersion && appBuildNumber > minVersion;
appBuildNumber < latestVersion && appBuildNumber >= minVersion;

// checks if no update available and return
if (!isMandatory && !isOptional) {
Expand Down

0 comments on commit ef3a179

Please sign in to comment.