diff --git a/mobile/lib/providers/infrastructure/action.provider.dart b/mobile/lib/providers/infrastructure/action.provider.dart index 9467f63483..659bd05db9 100644 --- a/mobile/lib/providers/infrastructure/action.provider.dart +++ b/mobile/lib/providers/infrastructure/action.provider.dart @@ -264,9 +264,8 @@ class ActionNotifier extends Notifier { } Future deleteLocal(ActionSource source, BuildContext context) async { - // Always perform the operation if there is only one merged asset final assets = _getAssets(source); - bool? backedUpOnly = assets.length == 1 && assets.first.storage == AssetState.merged + bool? backedUpOnly = assets.every((asset) => asset.storage == AssetState.merged) ? true : await showDialog( context: context,