Skip to content

Commit

Permalink
Fix: clear batch on confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Aug 10, 2023
1 parent 9d276e0 commit 01fcdec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/batch/BatchSidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const BatchSidebar = ({ isOpen, onToggle }: { isOpen: boolean; onToggle: (open:
}, [onToggle])

const clearBatch = useCallback(() => {
batchTxs.forEach((item) => deleteTx(item.txDetails.txId))
batchTxs.forEach((item) => deleteTx(item.id))
}, [deleteTx, batchTxs])

const onAddClick = useCallback(
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useDraftBatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const useUpdateBatch = () => {
)

const onDelete = useCallback(
(id: string) => {
(id: DraftBatchItem['id']) => {
dispatch(
removeTx({
chainId,
Expand Down

0 comments on commit 01fcdec

Please sign in to comment.