Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikth40 authored Jan 25, 2025
1 parent 3ad874e commit 7e04d10
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/assets/handleMouseEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const handleMouseEvents = (setWordSelected, setValidity, setLoading) => {
fixedTilesCount = currentFixedTilesCount
setLoading(true)
setWordSelected(wordSelected)
let color = ''
let color = 'red'

// function to check if the player selected word is valid or not
async function check_if_word_exists(word) {
Expand All @@ -63,7 +63,8 @@ const handleMouseEvents = (setWordSelected, setValidity, setLoading) => {
setValidity(false)
} else if (res.status === 200) {
const response = res.body
console.log(response[0])
console.log(res)
console.log(response)
if(response[0]?.id) {
console.log('Exists -->')
color = 'green'
Expand Down

0 comments on commit 7e04d10

Please sign in to comment.