diff --git a/app/scripts/controllers/app-state.js b/app/scripts/controllers/app-state.js index c90ec6223..8fa548cf2 100644 --- a/app/scripts/controllers/app-state.js +++ b/app/scripts/controllers/app-state.js @@ -33,7 +33,6 @@ export default class AppStateController extends EventEmitter { fullScreenGasPollTokens: [], recoveryPhraseReminderHasBeenShown: false, recoveryPhraseReminderLastShown: new Date().getTime(), - collectiblesDetectionNoticeDismissed: false, showTestnetMessageInDropdown: true, showPortfolioTooltip: true, showBetaHeader: isBeta(), @@ -303,19 +302,6 @@ export default class AppStateController extends EventEmitter { this.store.updateState({ trezorModel }); } - /** - * A setter for the `collectiblesDetectionNoticeDismissed` property - * - * @param collectiblesDetectionNoticeDismissed - */ - setCollectiblesDetectionNoticeDismissed( - collectiblesDetectionNoticeDismissed, - ) { - this.store.updateState({ - collectiblesDetectionNoticeDismissed, - }); - } - /** * A setter for the `collectiblesDropdownState` property * diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 0936e5b20..9ae15a5a6 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -1864,10 +1864,6 @@ export default class MetamaskController extends EventEmitter { appStateController.setShowPortfolioTooltip.bind(appStateController), setShowBetaHeader: appStateController.setShowBetaHeader.bind(appStateController), - setCollectiblesDetectionNoticeDismissed: - appStateController.setCollectiblesDetectionNoticeDismissed.bind( - appStateController, - ), updateCollectibleDropDownState: appStateController.updateCollectibleDropDownState.bind( appStateController, diff --git a/test/e2e/fixture-builder.js b/test/e2e/fixture-builder.js index c773dbc45..7f546a12f 100644 --- a/test/e2e/fixture-builder.js +++ b/test/e2e/fixture-builder.js @@ -115,7 +115,6 @@ function defaultFixture() { }, AppStateController: { browserEnvironment: {}, - collectiblesDetectionNoticeDismissed: false, collectiblesDropdownState: {}, connectedStatusPopoverHasBeenShown: true, defaultHomeActiveTabName: null, @@ -282,7 +281,6 @@ function onboardingFixture() { data: { AppStateController: { browserEnvironment: {}, - collectiblesDetectionNoticeDismissed: false, collectiblesDropdownState: {}, connectedStatusPopoverHasBeenShown: true, defaultHomeActiveTabName: null, diff --git a/ui/components/app/collectibles-detection-notice/collectibles-detection-notice.js b/ui/components/app/collectibles-detection-notice/collectibles-detection-notice.js index 00e512385..e5c62e631 100644 --- a/ui/components/app/collectibles-detection-notice/collectibles-detection-notice.js +++ b/ui/components/app/collectibles-detection-notice/collectibles-detection-notice.js @@ -13,7 +13,6 @@ import { import { useI18nContext } from '../../../hooks/useI18nContext'; import Button from '../../ui/button'; import { EXPERIMENTAL_ROUTE } from '../../../helpers/constants/routes'; -import { setCollectiblesDetectionNoticeDismissed } from '../../../store/actions'; export default function CollectiblesDetectionNotice() { const t = useI18nContext(); @@ -22,11 +21,6 @@ export default function CollectiblesDetectionNotice() { return ( -