Skip to content

Commit

Permalink
Fix full reload when clicking on TokenPills
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed Jul 6, 2023
1 parent 7c1995d commit 9bc0d61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .changelog/682.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix full reload when clicking on TokenPills
6 changes: 3 additions & 3 deletions src/app/components/Account/TokenPills.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FC } from 'react'
import { useTranslation } from 'react-i18next'
import Link from '@mui/material/Link'
import { Link as RouterLink } from 'react-router-dom'
import Chip from '@mui/material/Chip'
import Typography from '@mui/material/Typography'
import { useScreenSize } from '../../hooks/useScreensize'
Expand Down Expand Up @@ -52,8 +52,8 @@ export const Pill: FC<PillProps> = ({ account, pill }) => {
<Chip
clickable
color="tertiary"
component={Link}
href={tokenRoute}
component={RouterLink}
to={tokenRoute}
key={pill.token_contract_addr}
label={
<>
Expand Down

0 comments on commit 9bc0d61

Please sign in to comment.