Skip to content

Commit

Permalink
fix: wait for identity success action before fetching catalog (#1974)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo committed Sep 22, 2023
1 parent 86ab8e4 commit 56f4423
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions webapp/src/modules/item/sagas.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ describe('when handling the fetch items request action', () => {
[select(getLocation), { pathname: '' }],
[select(getWallet), undefined],
[select(getIsMarketplaceServerEnabled), true],
[select(getWallet), undefined],
[matchers.call.fn(CatalogAPI.prototype.get), Promise.reject(anError)],
[matchers.call.fn(waitForWalletConnectionIfConnecting), undefined],
[matchers.call.fn(waitForFeatureFlagsToBeLoaded), undefined]
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/modules/item/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ import { retryParams } from '../vendor/decentraland/utils'
import { CatalogAPI } from '../vendor/decentraland/catalog/api'
import { locations } from '../routing/locations'
import { fetchSmartWearableRequiredPermissionsRequest } from '../asset/actions'
import { GENERATE_IDENTITY_SUCCESS } from '../identity/actions'
import { MARKETPLACE_SERVER_URL } from '../vendor/decentraland'
import { getIsMarketplaceServerEnabled } from '../features/selectors'
import { waitForFeatureFlagsToBeLoaded } from '../features/utils'
import { GENERATE_IDENTITY_SUCCESS } from '../identity/actions'
import {
buyItemFailure,
BuyItemRequestAction,
Expand Down

0 comments on commit 56f4423

Please sign in to comment.