mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
fix draft listing. ModalMissingInformation was still shown too early.
This commit is contained in:
parent
65a081aa97
commit
e86f1a792f
1 changed files with 0 additions and 6 deletions
|
|
@ -3,7 +3,6 @@ import { types as sdkTypes } from '../../util/sdkLoader';
|
|||
import { storableError } from '../../util/errors';
|
||||
import { addMarketplaceEntities } from '../../ducks/marketplaceData.duck';
|
||||
import * as log from '../../util/log';
|
||||
import { fetchCurrentUserHasListingsSuccess } from '../../ducks/user.duck';
|
||||
|
||||
const { UUID } = sdkTypes;
|
||||
|
||||
|
|
@ -274,11 +273,6 @@ export function requestCreateListingDraft(data) {
|
|||
// Add the created listing to the marketplace data
|
||||
dispatch(addMarketplaceEntities(response));
|
||||
|
||||
// We must update the user duck since this might be the first
|
||||
// listing for the user, therefore changing the
|
||||
// currentUserHasListings flag in the store.
|
||||
dispatch(fetchCurrentUserHasListingsSuccess(true));
|
||||
|
||||
// Modify store to understand that we have created listing and can redirect away
|
||||
dispatch(createListingDraftSuccess(response));
|
||||
return response;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue