Skip to content

Commit

Permalink
fix: Close all modals when cancelling an order successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio committed Dec 29, 2024
1 parent 2ec14e6 commit d4d9891
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions webapp/src/modules/modal/sagas.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
UPDATE_LIST_SUCCESS
} from '../favorites/actions'
import { NFT } from '../nft/types'
import { CANCEL_ORDER_SUCCESS } from '../order/actions'
import {
claimAssetSuccess,
upsertRentalSuccess,
Expand All @@ -31,6 +32,7 @@ describe.each([
DELETE_LIST_FAILURE,
BULK_PICK_SUCCESS,
BULK_PICK_FAILURE,
CANCEL_ORDER_SUCCESS,
UPDATE_LIST_SUCCESS
])('when handling the success action of the %s action', actionType => {
it('should put the action to close all modals', () => {
Expand Down
4 changes: 3 additions & 1 deletion webapp/src/modules/modal/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
DELETE_LIST_SUCCESS,
UPDATE_LIST_SUCCESS
} from '../favorites/actions'
import { CANCEL_ORDER_SUCCESS } from '../order/actions'
import {
CLAIM_ASSET_SUCCESS,
UPSERT_RENTAL_SUCCESS,
Expand All @@ -27,7 +28,8 @@ export function* modalSaga() {
DELETE_LIST_FAILURE,
BULK_PICK_SUCCESS,
BULK_PICK_FAILURE,
UPDATE_LIST_SUCCESS
UPDATE_LIST_SUCCESS,
CANCEL_ORDER_SUCCESS
],
handleCloseAllModals
)
Expand Down

0 comments on commit d4d9891

Please sign in to comment.