fix home search bar to output lowercase

This commit is contained in:
plebeius.eth
2023-08-14 16:49:51 +02:00
parent e4c4927989
commit 8f2b80e1e8
+2 -2
View File
@@ -85,7 +85,7 @@ const Home = () => {
(event) => {
if (event.key === "Enter") {
event.preventDefault();
const address = inputRef.current.value;
const address = inputRef.current.value.toLowerCase();;
if (address) {
setSelectedAddress(address);
navigate(`/p/${address}`)
@@ -94,7 +94,7 @@ const Home = () => {
}} />
<input type="submit" value="Search" onClick={
() => {
const address = inputRef.current.value;
const address = inputRef.current.value.toLowerCase();;
if (address) {
setSelectedAddress(address);
navigate(`/p/${address}`)