Skip to content

Commit

Permalink
fix: Hydration error on the NFTs page, adjust NFT e2e test accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan committed Nov 10, 2023
1 parent 5399c1a commit 8bc6a4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions cypress/e2e/smoke/balances.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ describe('Balance tests', () => {
cy.visit(constants.BALANCE_URL + constants.SEPOLIA_TEST_SAFE_5)
main.acceptCookies()
cy.contains('Assets')
balances.selectTokenList(balances.tokenListOptions.default)
cy.get(balances.balanceSingleRow).should('have.length.lessThan', ASSETS_LENGTH)
balances.selectTokenList(balances.tokenListOptions.allTokens)
cy.get(balances.balanceSingleRow).should('have.length', ASSETS_LENGTH)
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/smoke/nfts.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const nftsTokenID = 'CF'
describe('NFTs tests', () => {
beforeEach(() => {
cy.clearLocalStorage()
cy.visit(constants.BALANCE_URL + constants.SEPOLIA_TEST_SAFE_5)
cy.visit(constants.balanceNftsUrl + constants.SEPOLIA_TEST_SAFE_5)
main.acceptCookies()
nfts.clickOnNftsTab()
})
Expand Down
2 changes: 1 addition & 1 deletion src/components/nfts/NftGrid/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const NftGrid = ({
onPreview,
}: NftsTableProps): ReactElement => {
const chainId = useChainId()
const linkTemplates = nftPlatforms[chainId]
const linkTemplates = nftPlatforms[chainId] || []
// Filter string
const [filter, setFilter] = useState<string>('')

Expand Down

0 comments on commit 8bc6a4f

Please sign in to comment.