From 928aded81ea57ac9d4dbf4ff5b0d020b7e9e4d71 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Norswap\" Laurent" Date: Tue, 27 Feb 2024 03:17:27 -0700 Subject: [PATCH] make check --- .../src/components/collection/cardCollectionDisplay.tsx | 2 +- packages/webapp/src/pages/_app.tsx | 2 +- packages/webapp/src/pages/collection.tsx | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/webapp/src/components/collection/cardCollectionDisplay.tsx b/packages/webapp/src/components/collection/cardCollectionDisplay.tsx index 89aa41c5..912c8fbf 100644 --- a/packages/webapp/src/components/collection/cardCollectionDisplay.tsx +++ b/packages/webapp/src/components/collection/cardCollectionDisplay.tsx @@ -38,7 +38,7 @@ const CardCollectionDisplay: React.FC = ({ cards, is } }} > - tc.id === index + 1)?.image} alt={card.lore.name} width={256} height={256} /> + Number(tc.id) === index + 1)?.image || ""} alt={card.lore.name} width={256} height={256} />
{card.lore.name}
{card.stats.attack}
diff --git a/packages/webapp/src/pages/_app.tsx b/packages/webapp/src/pages/_app.tsx index 6ba47bf4..c06a4c95 100644 --- a/packages/webapp/src/pages/_app.tsx +++ b/packages/webapp/src/pages/_app.tsx @@ -9,7 +9,7 @@ import { NextPage } from "next" import type { AppType } from "next/app" import Head from "next/head" import { useAccount, WagmiConfig } from "wagmi" -import { Dispatch, SetStateAction, useState } from "react" +import { Dispatch, SetStateAction } from "react" import { ensureLocalAccountIndex, wagmiConfig } from "src/chain" import jotaiDebug from "src/components/lib/jotaiDebug" import { GlobalErrorModal } from "src/components/modals/globalErrorModal" diff --git a/packages/webapp/src/pages/collection.tsx b/packages/webapp/src/pages/collection.tsx index ced3cc0d..6b128245 100644 --- a/packages/webapp/src/pages/collection.tsx +++ b/packages/webapp/src/pages/collection.tsx @@ -1,7 +1,7 @@ import debounce from "lodash/debounce" import Head from "next/head" -import { useState, useMemo, useEffect } from "react" +import React, { useState, useMemo, useEffect } from "react" import { useAccount } from "wagmi" import jotaiDebug from "src/components/lib/jotaiDebug" @@ -111,13 +111,13 @@ const Collection: React.FC = ({ decks, setDecks, isHydrated }) setDecks(updatedDecks) setIsEditing(false) setSelectedCards([]) - navigate(router, '/collection') + void navigate(router, '/collection') } const handleCancelEditing = () => { setIsEditing(false) setSelectedCards([]) - navigate(router, '/collection') + void navigate(router, '/collection') } const addToDeck = (card: Card) => {