Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch delete orders #465

Merged
merged 14 commits into from
Jun 27, 2024
Prev Previous commit
Next Next commit
fix linter and test errors
dcts committed Jun 25, 2024
commit 10588190b83a1f15f73e7edc888744e2b11e0056
5 changes: 2 additions & 3 deletions src/app/state/accountHistorySlice.ts
Original file line number Diff line number Diff line change
@@ -11,8 +11,7 @@ import { getRdt, getRdtOrThrow, RDT } from "../subscriptions";
import {
getBatchCancelManifest,
getOrderIdentifier,
getOrderIdentifierFromAdex,
} from "components/AccountHistoryUtils";
} from "../components/AccountHistoryUtils";

// TYPES AND INTERFACES
export enum Tables {
@@ -174,7 +173,7 @@ export const accountHistorySlice = createSlice({
builder.addCase(fetchAccountHistory.fulfilled, (state, action) => {
state.orderHistory = action.payload.data.orders;
});
builder.addCase(batchCancel.fulfilled, (state, _action) => {
builder.addCase(batchCancel.fulfilled, (state) => {
state.selectedOrdersToCancel = {};
});
},