From a3d7463df6370337f65c7ea859490160ab92f29b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulises=20Gasc=C3=B3n?= Date: Mon, 17 Jul 2023 17:26:08 +0200 Subject: [PATCH] fix: remove slash character at the end if exists --- src/pages/Home.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index 746216e..b80cecf 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -55,7 +55,7 @@ const Home = (): JSX.Element => { /* Check is valid address, either show err or redirect to results page */ const submit = () => { - let address = userInput; + let address = userInput.endsWith("/") ? userInput.slice(0, -1) : userInput; const addressType = determineAddressType(address); if (addressType === 'empt') {