Updated on 2026-08-14

This commit is contained in:
Tangem 2026-03-12 16:43:24 +03:00
commit 6439370afe
3 changed files with 7 additions and 5 deletions

View file

@ -59,7 +59,7 @@ internal fun MultiWalletAccessCodeEnter(
val focusRequester = remember { FocusRequester() }
OutlineTextField(
modifier = modifier
modifier = Modifier
.focusRequester(focusRequester)
.fillMaxWidth(),
value = if (reEnterAccessCodeState) {
@ -73,12 +73,14 @@ internal fun MultiWalletAccessCodeEnter(
state.onAccessCodeFirstChange
},
label = stringResourceSafe(id = R.string.onboarding_wallet_info_title_third),
isError = state.codesNotMatchError,
isError = state.codesNotMatchError || state.atLeast4CharError,
visualTransformation = PasswordVisualTransformation(),
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Password),
caption = when {
state.codesNotMatchError && reEnterAccessCodeState ->
stringResourceSafe(R.string.onboarding_access_codes_doesnt_match)
state.atLeast4CharError && !reEnterAccessCodeState ->
stringResourceSafe(R.string.onboarding_access_code_too_short)
else -> null
},
)

View file

@ -5,7 +5,6 @@ import com.tangem.domain.account.models.AccountStatusList
import com.tangem.domain.appcurrency.model.AppCurrency
import com.tangem.domain.models.TokensGroupType
import com.tangem.domain.models.TokensSortType
import com.tangem.domain.models.TotalFiatBalance
import com.tangem.domain.models.account.filterCryptoPortfolio
import com.tangem.domain.models.tokenlist.TokenList
import com.tangem.feature.wallet.child.organizetokens.entity.DraggableItem
@ -70,7 +69,7 @@ internal class AccountTokenItemConverter(
tokenItemState = AccountCryptoPortfolioItemStateConverter(
appCurrency = appCurrency,
account = accountStatus.account,
).convert(TotalFiatBalance.Loading),
).convert(accountStatus.tokenList.totalFiatBalance),
),
)
if (isGrouping) {

View file

@ -1,5 +1,6 @@
package com.tangem.feature.wallet.child.wallet.model.intents
import com.arkivanov.decompose.router.slot.dismiss
import com.tangem.blockchain.common.address.AddressType
import com.tangem.common.routing.AppRoute
import com.tangem.common.routing.AppRouter
@ -288,7 +289,7 @@ internal class WalletCurrencyActionsClickIntentsImplementor @Inject constructor(
)
},
ifRight = {
stateHolder.update(CloseBottomSheetTransformer(userWalletId = accountId.userWalletId))
router.dialogNavigation.dismiss()
},
)
}