Skip to content
Snippets Groups Projects
Commit 0e95c8aa authored by Dima Rifai's avatar Dima Rifai Committed by mcfarhat
Browse files

Issue #412 - Validate Account in route starts with @

parent 557dcaab
No related branches found
No related tags found
1 merge request!511Delrifai/#412 verify account starts with @
This commit is part of merge request !511. Comments created here will be created in the context of that merge request.
...@@ -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