diff --git a/src/components/FilterTopGrower.js b/src/components/FilterTopGrower.js index 348b04fa0..ac6d4b9bd 100644 --- a/src/components/FilterTopGrower.js +++ b/src/components/FilterTopGrower.js @@ -55,6 +55,7 @@ function FilterTopGrower(props) { ); const [email, setEmail] = useState(filter?.email || ''); const [phone, setPhone] = useState(filter?.phone || ''); + const [wallet, setWallet] = useState(filter?.wallet || ''); const [deviceIdentifier, setDeviceIdentifier] = useState( filter?.deviceIdentifier || '' ); @@ -70,6 +71,7 @@ function FilterTopGrower(props) { email: email.trim(), phone: phone.trim(), deviceIdentifier, + wallet: wallet.trim(), }); props.onSubmit && props.onSubmit(filter); } @@ -84,6 +86,7 @@ function FilterTopGrower(props) { setEmail(''); setPhone(''); setDeviceIdentifier(''); + setWallet(''); const filter = new FilterModel(); props.onSubmit && props.onSubmit(filter); @@ -156,6 +159,16 @@ function FilterTopGrower(props) { onChange={(e) => setLastName(e.target.value)} onKeyDown={handleEnterPress} /> + setWallet(e.target.value)} + onKeyDown={handleEnterPress} + />