Skip to content

Commit

Permalink
Merge branch 'main' into batch-delete-orders
Browse files Browse the repository at this point in the history
dcts authored Jun 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 3e0cea3 + 784637f commit 3dd85d8
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/app/state/pairSelectorSlice.ts
Original file line number Diff line number Diff line change
@@ -144,18 +144,8 @@ export const pairSelectorSlice = createSlice({
}
},
resetBalances: (state: PairSelectorState) => {
const [token1State, token2State] = [
{ ...state.token1 },
{ ...state.token2 },
];
delete token1State.balance;
delete token2State.balance;

return {
...state,
["token1"]: token1State,
["token2"]: token2State,
};
delete state.token1.balance;
delete state.token2.balance;
},
},

0 comments on commit 3dd85d8

Please sign in to comment.