Skip to content

Commit 69f65d1

Browse files
nomanrdomegabri
authored andcommitted
fix: hide rename wallet option for ephemeral accounts
1 parent 7d78238 commit 69f65d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/src/commonMain/kotlin/com/blockstream/common/models/settings/WalletSettingsViewModel.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,10 @@ class WalletSettingsViewModel(
359359

360360
// Wallet Settings Section
361361
list += WalletSetting.Text(getString(Res.string.id_wallet_settings))
362+
if (!greenWallet.isEphemeral) {
363+
list += WalletSetting.RenameWallet(walletName = greenWallet.name)
364+
}
362365
list += listOf(
363-
WalletSetting.RenameWallet(walletName = greenWallet.name),
364366
WalletSetting.DenominationExchangeRate(
365367
unit = settings.networkUnit(session),
366368
currency = settings.pricing.currency,

0 commit comments

Comments
 (0)