Skip to content

Commit

Permalink
fix(suite-native): prevent error Cannot read property 'addresses' of …
Browse files Browse the repository at this point in the history
  • Loading branch information
matejkriz committed Nov 22, 2024
1 parent 4bfcf3d commit fd382c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion suite-native/transactions/src/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const selectTransactionInputAndOutputTransfers = createMemoizedSelector(
const externalTransfers: TransactionTranfer[] = [
{
inputs: [{ address: transaction.descriptor }],
outputs: [{ address: transaction.targets?.[0].addresses?.[0] ?? '' }],
outputs: [{ address: transaction.targets?.[0]?.addresses?.[0] ?? '' }],
symbol: transaction.symbol,
},
];
Expand Down

0 comments on commit fd382c5

Please sign in to comment.