Skip to content

Commit

Permalink
fix: keepkey label ui (#8232)
Browse files Browse the repository at this point in the history
Co-authored-by: woody <[email protected]>
  • Loading branch information
0xApotheosis and woodenfurniture authored Dec 2, 2024
1 parent 25079f4 commit e09ebd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const ChangeLabel = () => {
deviceState: { awaitingDeviceInteraction },
},
} = useWallet()
const [keepKeyLabel, setKeepKeyLabel] = useState(walletInfo?.name)
const [keepKeyLabel, setKeepKeyLabel] = useState(walletInfo?.meta?.label ?? walletInfo?.name)

const handleChangeLabelInitializeEvent = useCallback(async () => {
await keepKeyWallet?.applySettings({ label: keepKeyLabel }).catch(e => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const KeepKeyMenu = () => {
<ExpandedMenuItem
onClick={navigateToKeepKeyLabel}
label='walletProvider.keepKey.settings.menuLabels.label'
value={walletInfo?.name}
value={walletInfo?.meta?.label ?? walletInfo?.name}
hasSubmenu={true}
/>
<ExpandedMenuItem
Expand Down

0 comments on commit e09ebd6

Please sign in to comment.