Skip to content

Commit

Permalink
Merge pull request #711 from blockscout/token-field-fix
Browse files Browse the repository at this point in the history
fix field name
  • Loading branch information
isstuev authored Mar 27, 2023
2 parents 37d52c0 + 0daa258 commit fcddd70
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/address/AddressTokenTransfers.pw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const API_URL = buildApiUrl('address_token_transfers', { hash: '0xd789a607CEac2f

const hooksConfig = {
router: {
query: { hash: '0xd789a607CEac2f0E14867de4EB15b15C9FFB5859', token_hash: '0x1189a607CEac2f0E14867de4EB15b15C9FFB5859' },
query: { hash: '0xd789a607CEac2f0E14867de4EB15b15C9FFB5859', token: '0x1189a607CEac2f0E14867de4EB15b15C9FFB5859' },
},
};

Expand Down
2 changes: 1 addition & 1 deletion ui/address/AddressTokenTransfers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const AddressTokenTransfers = ({ scrollRef }: {scrollRef?: React.RefObject<HTMLD
const [ socketAlert, setSocketAlert ] = React.useState('');
const [ newItemsCount, setNewItemsCount ] = React.useState(0);

const tokenFilter = getQueryParamString(router.query.token_hash) || undefined;
const tokenFilter = getQueryParamString(router.query.token) || undefined;

const [ filters, setFilters ] = React.useState<Filters>(
{
Expand Down
2 changes: 1 addition & 1 deletion ui/shared/address/AddressLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const AddressLink = (props: Props) => {
} else if (type === 'block') {
url = route({ pathname: '/block/[height]', query: { height: props.blockHeight } });
} else if (type === 'address_token') {
url = route({ pathname: '/address/[hash]', query: { hash, tab: 'token_transfers', token_hash: props.tokenHash, scroll_to_tabs: 'true' } });
url = route({ pathname: '/address/[hash]', query: { hash, tab: 'token_transfers', token: props.tokenHash, scroll_to_tabs: 'true' } });
} else {
url = route({ pathname: '/address/[hash]', query: { hash } });
}
Expand Down

0 comments on commit fcddd70

Please sign in to comment.