diff --git a/lib/user/name/presentation/bloc/profile_name_bloc.dart b/lib/user/name/presentation/bloc/profile_name_bloc.dart index 1e0eba28d..eb799b34d 100644 --- a/lib/user/name/presentation/bloc/profile_name_bloc.dart +++ b/lib/user/name/presentation/bloc/profile_name_bloc.dart @@ -75,13 +75,17 @@ class ProfileNameBloc extends Bloc { logger.d('Profile logo tx id: $profileLogoTxId'); } + final getLogo = refreshLogo || profileLogoTxId == null; + + logger.d('Getting primary name with getLogo: $getLogo'); + var primaryNameDetails = await _arnsRepository.getPrimaryName( walletAddress, update: refreshName, - getLogo: refreshLogo || profileLogoTxId == null, + getLogo: getLogo, ); - if (refreshLogo && profileLogoTxId != null) { + if (!refreshLogo && profileLogoTxId != null) { primaryNameDetails = primaryNameDetails.copyWith(logo: profileLogoTxId); }