Skip to content

Commit

Permalink
fix: handle undefined array
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-strzelec committed Jan 28, 2025
1 parent 6b7e3cd commit 57ad081
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const PaymentBuilderWidget: FC<PaymentBuilderWidgetProps> = ({ action }) => {

const tokenData = getSelectedToken(
colony,
expenditure?.slots?.[0].payouts?.[0].tokenAddress ?? '',
expenditure?.slots?.[0].payouts?.[0]?.tokenAddress ?? '',
);

const {
Expand Down

0 comments on commit 57ad081

Please sign in to comment.