Skip to content
Snippets Groups Projects
Commit 2e5d5694 authored by Dima Rifai's avatar Dima Rifai
Browse files

Issue #412 - Validate Account in route starts with @

parent 720cc905
No related branches found
No related tags found
No related merge requests found
...@@ -178,7 +178,7 @@ export default function BalanceHistory() { ...@@ -178,7 +178,7 @@ export default function BalanceHistory() {
? router.query.accountName[0] // If it's an array, get the first element ? router.query.accountName[0] // If it's an array, get the first element
: router.query.accountName; // Otherwise, treat it as a string directly : router.query.accountName; // Otherwise, treat it as a string directly
if(routeAccountName && !routeAccountName.startsWith("@") || !accountNameFromRoute) if(routeAccountName && !routeAccountName.startsWith("@"))
{ {
return <ErrorPage />; return <ErrorPage />;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment