Skip to content

Commit 9ea6a4b

Browse files
committed
Merge branch 'addaccount'
2 parents 9a79804 + 082d721 commit 9ea6a4b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- Ethereum bugfix: show all internal transactions that share the same transaction ID
1212
- Allow up to 6 unused BTC/LTC accounts (previously 5)
1313
- Add support for New Zealand Dollar (NZD)
14+
- Fix empty suggested name for BTC account when only BTC is supported by the BitBox.
1415

1516
## v4.48.4
1617
- macOS: fix potential USB communication issue with BitBox02 bootloaders <v1.1.2 and firmwares <v9.23.1

frontends/web/src/routes/account/add/add.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const AddAccount = ({ accounts }: TAddAccountGuide) => {
6868
setStep(onlyOneCoinIsSupported ? 'choose-name' : 'select-coin');
6969
setSupportedCoins(coins);
7070
if (onlyOneCoinIsSupported) {
71-
setAccountCode(coins[0].suggestedAccountName);
71+
setAccountName(coins[0].suggestedAccountName);
7272
}
7373
inputRef.current?.focus();
7474
} catch (err) {
@@ -91,8 +91,12 @@ export const AddAccount = ({ accounts }: TAddAccountGuide) => {
9191
navigate(-1);
9292
break;
9393
case 'choose-name':
94-
setStep('select-coin');
95-
setErrorMessage(undefined);
94+
if (onlyOneSupportedCoin()) {
95+
navigate(-1);
96+
} else {
97+
setStep('select-coin');
98+
setErrorMessage(undefined);
99+
}
96100
break;
97101
case 'success':
98102
setStep('choose-name');

0 commit comments

Comments
 (0)