value = null
This commit is contained in:
@@ -8,7 +8,7 @@ interface urlProp {
|
||||
}
|
||||
|
||||
function SearchUser(props: urlProp) {
|
||||
const [numAcount, setnumAcount] = useState("");
|
||||
const [numAcount, setnumAcount] = useState<string>();
|
||||
const router = useRouter();
|
||||
const pathname = usePathname();
|
||||
const searchParams = useSearchParams();
|
||||
@@ -17,6 +17,10 @@ function SearchUser(props: urlProp) {
|
||||
if (props.value) {
|
||||
setnumAcount(props.value);
|
||||
}
|
||||
|
||||
if(props.value===null){
|
||||
setnumAcount("")
|
||||
}
|
||||
}, [props.value]);
|
||||
|
||||
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {
|
||||
|
||||
Reference in New Issue
Block a user