Skip to content

Commit

Permalink
make check
Browse files Browse the repository at this point in the history
  • Loading branch information
norswap committed Feb 27, 2024
1 parent 42f25f7 commit 928aded
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const CardCollectionDisplay: React.FC<CardCollectionDisplayProps> = ({ cards, is
}
}}
>
<Image className="aspect-square" src={testCards.find(tc => tc.id === index + 1)?.image} alt={card.lore.name} width={256} height={256} />
<Image className="aspect-square" src={testCards.find(tc => Number(tc.id) === index + 1)?.image || ""} alt={card.lore.name} width={256} height={256} />
<div className="text-center">{card.lore.name}</div>
<div className="flex items-end justify-between p-2 relative">
<div className="flex items-center justify-center h-8 w-8 rounded-full bg-yellow-400 text-gray-900 font-bold text-lg absolute bottom-[-16px]">{card.stats.attack}</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/webapp/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions packages/webapp/src/pages/collection.tsx
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -111,13 +111,13 @@ const Collection: React.FC<CollectionProps> = ({ 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) => {
Expand Down

0 comments on commit 928aded

Please sign in to comment.