From 306f6f1e45e51b24320c810b5daf61ad28c7df87 Mon Sep 17 00:00:00 2001 From: naezith Date: Mon, 9 Oct 2023 13:14:24 +0300 Subject: [PATCH] zhtlc cleanup --- .../z_coin_activation/bloc/z_coin_activation_bloc.dart | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/packages/z_coin_activation/bloc/z_coin_activation_bloc.dart b/lib/packages/z_coin_activation/bloc/z_coin_activation_bloc.dart index 6bf3d777b..78ee3db7f 100644 --- a/lib/packages/z_coin_activation/bloc/z_coin_activation_bloc.dart +++ b/lib/packages/z_coin_activation/bloc/z_coin_activation_bloc.dart @@ -27,13 +27,12 @@ class ZCoinActivationBloc ); Future isResyncing() async { - final List enabledCoins = (await _repository.getEnabledZCoins()) + final enabledCoins = (await _repository.getEnabledZCoins()) + .map((coin) => coin.toLowerCase()) + .toList(); + final coinsToActivate = (await _repository.getRequestedActivatedCoins()) .map((coin) => coin.toLowerCase()) .toList(); - final List coinsToActivate = - (await _repository.getRequestedActivatedCoins()) - .map((coin) => coin.toLowerCase()) - .toList(); return coinsToActivate.every((coin) => enabledCoins.contains(coin)); }