mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix home search bar to output lowercase
This commit is contained in:
@@ -85,7 +85,7 @@ const Home = () => {
|
|||||||
(event) => {
|
(event) => {
|
||||||
if (event.key === "Enter") {
|
if (event.key === "Enter") {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
const address = inputRef.current.value;
|
const address = inputRef.current.value.toLowerCase();;
|
||||||
if (address) {
|
if (address) {
|
||||||
setSelectedAddress(address);
|
setSelectedAddress(address);
|
||||||
navigate(`/p/${address}`)
|
navigate(`/p/${address}`)
|
||||||
@@ -94,7 +94,7 @@ const Home = () => {
|
|||||||
}} />
|
}} />
|
||||||
<input type="submit" value="Search" onClick={
|
<input type="submit" value="Search" onClick={
|
||||||
() => {
|
() => {
|
||||||
const address = inputRef.current.value;
|
const address = inputRef.current.value.toLowerCase();;
|
||||||
if (address) {
|
if (address) {
|
||||||
setSelectedAddress(address);
|
setSelectedAddress(address);
|
||||||
navigate(`/p/${address}`)
|
navigate(`/p/${address}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user