Skip to content

Commit

Permalink
Merge pull request #1213 from gabrielbazan7/fix/selector
Browse files Browse the repository at this point in the history
[FIX] ensure deep copy of selectObj to prevent unintended mutations
  • Loading branch information
JohnathanWhite authored Jun 25, 2024
2 parents a2d85b6 + 6979a3b commit 36b0d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/navigation/wallet/screens/GlobalSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ const filterByChain = (
selectObj: GlobalSelectObj,
selectedNetworkForDeposit: string,
) => {
const newSelectObj = {...selectObj};
const newSelectObj = _.cloneDeep({...selectObj});

Object.entries(newSelectObj.availableWalletsByKey).forEach(
([key, wallets]) => {
Expand Down

0 comments on commit 36b0d2d

Please sign in to comment.