Skip to content

Commit

Permalink
Fix review
Browse files Browse the repository at this point in the history
  • Loading branch information
faizov committed Apr 23, 2024
1 parent 9594605 commit ca4e014
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const FindGame = ({ closeFindGame }: { closeFindGame: () => void }) => {

const onFindGame = () => {
setPreviousGame(null)
const findGame = state?.games.find(game => game[0] === form.values.creator || game[0] === decodeAddress(form.values.creator))
const findGame = state?.games.find(game => game[0] === decodeAddress(form.values.creator))
if (findGame) {
setFindGame(findGame[1] as GameType)
setOpenModal(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const TournamentFind = () => {
const onSearchGame = () => {
if (findAddress) {
const findGame = allGames?.find(game => {
return game[0] === decodeAddress(findAddress) || encodeAddress(game[0]) === findAddress
return game[0] === decodeAddress(findAddress)
})
if (findGame) {
setIsOpenFindModal(true)
Expand Down

0 comments on commit ca4e014

Please sign in to comment.