Skip to content

Commit

Permalink
feat: Hide high congestion error message in the publish collection mo…
Browse files Browse the repository at this point in the history
…dal (#2568)

* feat: Hide high congestion error message in the publish collection modal

* feat: Upgrade decentraland-dapps version
  • Loading branch information
cyaiox authored Mar 20, 2023
1 parent 43193fb commit d762453
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"dcl-scene-writer": "^1.1.2",
"decentraland": "^3.3.0",
"decentraland-builder-scripts": "^0.24.0",
"decentraland-dapps": "^13.38.1",
"decentraland-dapps": "^13.41.0",
"decentraland-ecs": "file:ecs/decentraland-ecs-6.6.1-20201020183014.commit-bdc29ef-hotfix.tgz",
"decentraland-experiments": "^1.0.2",
"decentraland-transactions": "^1.42.0",
Expand Down
5 changes: 3 additions & 2 deletions src/modules/collection/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { CatalystClient, DeploymentPreparationData } from 'dcl-catalyst-client'
import { ChainId } from '@dcl/schemas'
import { generateTree } from '@dcl/content-hash-tree'
import { BuilderClient, ThirdParty } from '@dcl/builder-client'
import { ContractData, ContractName, getContract } from 'decentraland-transactions'
import { ContractData, ContractName, ErrorCode, getContract } from 'decentraland-transactions'
import { getOpenModals } from 'decentraland-dapps/dist/modules/modal/selectors'
import { ModalState } from 'decentraland-dapps/dist/modules/modal/reducer'
import { t } from 'decentraland-dapps/dist/modules/translation/utils'
Expand Down Expand Up @@ -420,7 +420,8 @@ export function* collectionSaga(legacyBuilderClient: BuilderAPI, client: Builder

yield put(publishCollectionSuccess(collection, items, maticChainId, txHash))
} catch (error) {
yield put(publishCollectionFailure(collection, items, error.message))
const message = error?.code === ErrorCode.HIGH_CONGESTION ? '' : error.message
yield put(publishCollectionFailure(collection, items, message))
}
}

Expand Down

1 comment on commit d762453

@vercel
Copy link

@vercel vercel bot commented on d762453 Mar 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder – ./

builder-decentraland1.vercel.app
builder-git-master-decentraland1.vercel.app

Please sign in to comment.