Skip to content

Commit fae451d

Browse files
Shawnrefi93mchappellljagielawklos-iohk
authored
[LW-9077]: wallets crashing when sending ada handle (#732)
* feat(staking): [LW-8879] persistence banner fix, minor banners refactor (#702) persistence banner fix, minor banners refactor * feat(extension): update lace version and default release note (#709) * test(extension): test maintenance 7 Nov (#707) * chore(extension): update multi-staking faq (#711) * chore(extension): update multi-staking faq * test(extension): fix LW-8465 --------- Co-authored-by: wklos-iohk <wojciech.klos@iohk.io> * fix(staking): fix delegations with stake key (de)registrations being omitted from activity (#713) * fix: lace crashing for ada handle wallets --------- Co-authored-by: Rafael Korbaš <rafael.korbas@gmail.com> Co-authored-by: Michael Chappell <7581002+mchappell@users.noreply.github.com> Co-authored-by: Lukasz Jagiela <12641433+ljagiela@users.noreply.github.com> Co-authored-by: wklos-iohk <wojciech.klos@iohk.io>
1 parent 642052d commit fae451d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/browser-extension-wallet/src/views/browser-view/features/send-transaction/components/SendTransactionSummary.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ interface SendTransactionSummaryProps {
102102
export const SendTransactionSummary = withAddressBookContext(
103103
({ isPopupView = false }: SendTransactionSummaryProps): React.ReactElement => {
104104
const { t } = useTranslation();
105-
const { builtTxData: { uiTx: { fee, outputs, handleResolutions } = {} } = {} } = useBuiltTxState();
105+
const { builtTxData: { uiTx: { fee, outputs } = {} } = {} } = useBuiltTxState();
106106
const [metadata] = useMetadata();
107107
const { inMemoryWallet } = useWalletStore();
108108
const { priceResult } = useFetchCoinPrice();
@@ -136,11 +136,11 @@ export const SendTransactionSummary = withAddressBookContext(
136136
[addressList]
137137
);
138138

139-
const rows = [...(outputs?.values() ?? [])].map((item, idx) => ({
139+
const rows = [...(outputs?.values() ?? [])].map((item) => ({
140140
list: formatRow({ output: item, assetInfo: assetsInfo, cardanoCoin, fiatCurrency, prices: priceResult }),
141141
recipientAddress: item.address,
142142
recipientName:
143-
addressToNameMap?.get(handleResolutions[idx]?.handle || item.address) || handleResolutions[idx]?.handle
143+
addressToNameMap?.get(item.handleResolution?.handle || item.address) || item.handleResolution?.handle
144144
}));
145145

146146
// Where do we get the deposit field? LW-1363

0 commit comments

Comments
 (0)