Merge pull request #329 from blockworks-foundation/silas/url-encode

fix: input encoding
This commit is contained in:
tlrsssss 2023-11-29 17:16:54 -05:00 committed by GitHub
commit 6be46777ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -86,9 +86,12 @@ const MangoAccountDashboard: NextPage = () => {
/>
<Button
className="flex items-center"
onClick={() =>
router.push(`/dashboard/mangoaccount?address=${searchString}`)
}
onClick={() => {
const encodedSearchString = encodeURIComponent(searchString)
router.push(
`/dashboard/mangoaccount?address=${encodedSearchString}`,
)
}}
disabled={!searchString}
size="large"
>