You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try and makes these shorter and return early. Also I don't quite follow the logic, else if (latestGameId !== null) would never run because if latestGameId is a string then the first block will run. I might be missing something but as I say it's hard to follow the logic because the blocks are so long.
See if you can break them down and also consider whether you really need an else if statement - often you don't and it just confuses things.
Try and makes these shorter and return early. Also I don't quite follow the logic,
else if (latestGameId !== null)
would never run because iflatestGameId
is a string then the first block will run. I might be missing something but as I say it's hard to follow the logic because the blocks are so long.See if you can break them down and also consider whether you really need an
else if
statement - often you don't and it just confuses things.https://github.com/fac28/in-house-project/blob/9d2c5085cc1e6508c0d79e905a68988a41513b0b/app/components/Button/HomeStartButton.tsx#L110C5-L110C5
The text was updated successfully, but these errors were encountered: