Skip to content

Commit

Permalink
Update profile_name_bloc.dart
Browse files Browse the repository at this point in the history
fix logo
  • Loading branch information
thiagocarvalhodev committed Dec 18, 2024
1 parent 3bb9537 commit bfd60d1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/user/name/presentation/bloc/profile_name_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,17 @@ class ProfileNameBloc extends Bloc<ProfileNameEvent, ProfileNameState> {
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);
}

Expand Down

0 comments on commit bfd60d1

Please sign in to comment.