Merge pull request #329 from blockworks-foundation/silas/url-encode
fix: input encoding
This commit is contained in:
commit
6be46777ac
|
@ -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"
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue