fix: use inputValue

This commit is contained in:
Derrick Hammer 2023-10-16 18:12:20 -04:00
parent 2c93feb022
commit 77c5473bd7
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ export function Navigator() {
const [inputValue, setInputValue] = useState(contextUrl); // Local state for the input value const [inputValue, setInputValue] = useState(contextUrl); // Local state for the input value
const browse = useCallback(() => { const browse = useCallback(() => {
let input = contextUrl.trim(); let input = inputValue.trim();
// If the input doesn't contain a protocol, assume it's http // If the input doesn't contain a protocol, assume it's http
if (!input?.match(/^https?:\/\//)) { if (!input?.match(/^https?:\/\//)) {