Fix incorrect deps
This commit is contained in:
parent
6f1df9da44
commit
5b1bf64a52
2 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ export default function Page() {
|
|||
</div>
|
||||
</div>
|
||||
)
|
||||
}, [resultsData, resultsError])
|
||||
}, [userName, resultsData, resultsError])
|
||||
|
||||
return <>
|
||||
<main>
|
||||
|
|
|
@ -97,7 +97,7 @@ export default function Page() {
|
|||
</form>
|
||||
</div>
|
||||
)
|
||||
}, [onSubmit, opponent, result])
|
||||
}, [onSubmit, userName, opponent, result])
|
||||
|
||||
return <>
|
||||
<main>
|
||||
|
|
Loading…
Reference in a new issue