Skip to content

Commit

Permalink
fix(ui): Fixed transfer dialog not working.
Browse files Browse the repository at this point in the history
The transfer dialog was still treating the react-query spending result
as a map; it is now an array.

This just fixes how it handles the onChange callback to address that
properly.

Resolves #1237
  • Loading branch information
elliotcourant committed Dec 23, 2022
1 parent a95f030 commit 575f2a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/components/Spending/SpendingSelectionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function SpendingSelectionList(props: Props): JSX.Element {
return;
}

return onChange(spending.get(spendingId));
return onChange(spending.find(item => item.spendingId === spendingId));
};

const { value, disabled, excludeIds, excludeSafeToSpend } = props;
Expand Down

0 comments on commit 575f2a9

Please sign in to comment.