From ef3a17974d56eb27773a7277bfcef782be8c6073 Mon Sep 17 00:00:00 2001 From: Reza <94842463+Reza-deriv@users.noreply.github.com> Date: Thu, 15 Feb 2024 12:23:50 +0800 Subject: [PATCH] fix optional update issue --- packages/update_checker/lib/src/bloc/update_bloc.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/update_checker/lib/src/bloc/update_bloc.dart b/packages/update_checker/lib/src/bloc/update_bloc.dart index 4c1865523..3811fc1a9 100644 --- a/packages/update_checker/lib/src/bloc/update_bloc.dart +++ b/packages/update_checker/lib/src/bloc/update_bloc.dart @@ -87,7 +87,7 @@ class UpdateBloc extends Bloc { 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) {