diff --git a/.changeset/four-olives-hammer.md b/.changeset/four-olives-hammer.md new file mode 100644 index 000000000000..66fca19e5e94 --- /dev/null +++ b/.changeset/four-olives-hammer.md @@ -0,0 +1,5 @@ +--- +"ledger-live-desktop": patch +--- + +On receive flow default account name was displayed instead of the account name selected by the user diff --git a/apps/ledger-live-desktop/src/renderer/modals/Receive/steps/StepReceiveFunds.tsx b/apps/ledger-live-desktop/src/renderer/modals/Receive/steps/StepReceiveFunds.tsx index 32211e21b5e1..fa2ce2aced41 100644 --- a/apps/ledger-live-desktop/src/renderer/modals/Receive/steps/StepReceiveFunds.tsx +++ b/apps/ledger-live-desktop/src/renderer/modals/Receive/steps/StepReceiveFunds.tsx @@ -38,6 +38,7 @@ import { getLLDCoinFamily } from "~/renderer/families"; import { firstValueFrom } from "rxjs"; import { useCompleteActionCallback } from "~/renderer/components/PostOnboardingHub/logic/useCompleteAction"; import { getDefaultAccountName } from "@ledgerhq/live-wallet/accountName"; +import { useMaybeAccountName } from "~/renderer/reducers/wallet"; const Separator = styled.div` border-top: 1px solid #99999933; @@ -171,7 +172,8 @@ const StepReceiveFunds = (props: StepProps) => { const mainAccount = account ? getMainAccount(account, parentAccount) : null; invariant(account && mainAccount, "No account given"); - const name = token ? token.name : getDefaultAccountName(account); + const maybeAccountName = useMaybeAccountName(account); + const name = token ? token.name : maybeAccountName || getDefaultAccountName(account); const initialDevice = useRef(device); const address = mainAccount.freshAddress; const [modalVisible, setModalVisible] = useState(false);