disabled input condition fixed
This commit is contained in:
parent
73f84f4e06
commit
2aebed115c
|
|
@ -44,7 +44,7 @@ const SearchTable = () => {
|
|||
<div className="search-table">
|
||||
<form className="search-field" onSubmit={(e) => e.preventDefault()}>
|
||||
<input
|
||||
disabled={playerData ? true : false}
|
||||
disabled={playerData[0].id === -1 ? true : false}
|
||||
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
if (playerData) {
|
||||
if (e.target.value.length === 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue