Skip to content

Commit

Permalink
Merge branch 'tmp'
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkbee1 committed Dec 16, 2024
2 parents a7b5136 + b2c11fb commit 762fcda
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/wallet/cubit/wallet_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,17 @@ class WalletCubit extends Cubit<WalletState> {
// get crurrent current profile type from profileCubit
final ProfileType currentProfileType =
credentialsCubit.profileCubit.state.model.profileType;
await credentialsCubit.profileCubit.setProfile(ProfileType.defaultOne);
if (currentProfileType != ProfileType.enterprise) {
await credentialsCubit.profileCubit.setProfile(ProfileType.defaultOne);
await credentialsCubit.insertAssociatedWalletCredential(
cryptoAccountData: cryptoAccountData,
);
await credentialsCubit.profileCubit.setProfile(currentProfileType);
} else {
await credentialsCubit.insertAssociatedWalletCredential(
cryptoAccountData: cryptoAccountData,
);
}
}

return cryptoAccountData;
Expand Down

0 comments on commit 762fcda

Please sign in to comment.