Skip to content

[Bug]: Autodetect NFT - Autodetect NFT doesn't trigger an API call when I switch to another account while being in the NFT tab, making no tokens detected unless I refresh #28654

@seaona

Description

@seaona

Describe the bug

Anytime I go to the NFT tab, a request is sent to the NFT API to autodetect NFTs for that account, when that feature is enabled. However, in the case where I switch to another account while being in the NFT tab, I can see how no request is sent to the NFT API meaning, autodetect won't happen (until the user either clicks refresh, or refreshes the wallet / goes again to the NFT tab)

Expected behavior

When we switch accounts, if we are in the NFT tab, a request to the nft api should be made to autodetect tokens for that account (if the feature is enabled from settings)

Screenshots/Recordings

nft-autodetect-token.mp4

Steps to reproduce

  1. Open network tab and look for nft requests
  2. Make sure you have NFT autodetect from settings enabled
  3. With any given account, click NFT tab --> see a request is sent to the NFT API
  4. Now switch accounts
  5. See the NFT list remains empty and no request is sent to the nft API, unless you refresh it or click the Refresh button

Error messages or log output

No response

Detection stage

In production (default)

Version

12.6.2

Build type

None

Browser

Chrome

Operating system

Linux

Hardware wallet

No response

Additional context

No response

Severity

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Sev2-normalNormal severity; minor loss of service or inconvenience.regression-prod-12.6.2Regression bug that was found in production in release 12.6.2release-12.18.0Issue or pull request that will be included in release 12.18.0team-assetstype-bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions