Skip to content

Commit

Permalink
token transfers, blocks fee and xstar fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
isstuev committed Nov 6, 2024
1 parent 800a85c commit bc1b688
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions configs/app/features/xStarScore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import type { Feature } from './types';

import { getEnvValue } from '../utils';

const title = 'Xname score';
const url = getEnvValue('NEXT_PUBLIC_XNAME_SCORE_URL');
const title = 'XStar score';
const url = getEnvValue('NEXT_PUBLIC_XSTAR_SCORE_URL');

const config: Feature<{ url: string }> = (() => {
if (url) {
Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/useNavItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export default function useNavItems(): ReturnType {
text: 'Tokens',
nextRoute: { pathname: '/tokens' as const },
icon: 'token',
isActive: pathname.startsWith('/token'),
isActive: pathname === '/tokens' || pathname.startsWith('/token/'),
},
{
text: 'Token transfers',
Expand Down
2 changes: 1 addition & 1 deletion stubs/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { TOKEN_INFO_ERC_20, TOKEN_TRANSFER_ERC_20 } from './token';
export const BLOCK_HASH = '0x8fa7b9e5e5e79deeb62d608db22ba9a5cb45388c7ebb9223ae77331c6080dc70';

export const BLOCK: Block = {
base_fee_per_gas: '14',
base_fee_per_gas: '10000000000',
burnt_fees: '92834504000000000',
burnt_fees_percentage: 42.2,
difficulty: '340282366920938463463374607431768211451',
Expand Down
2 changes: 1 addition & 1 deletion ui/pages/TokenTransfers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const TokenTransfers = () => {
<Show below="lg" ssr={ false }>
{ tokenTransfersQuery.data?.items.map((item, index) => (
<TokenTransfersListItem
key={ item.block_number + item.log_index + (tokenTransfersQuery.isPlaceholderData ? index : '') }
key={ item.tx_hash + item.log_index + (tokenTransfersQuery.isPlaceholderData ? index : '') }
isLoading={ tokenTransfersQuery.isPlaceholderData }
item={ item }
/>
Expand Down
2 changes: 1 addition & 1 deletion ui/tokenTransfers/TokenTransfersTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const TokenTransferTable = ({ items, top, isLoading }: Props) => {
<Tbody>
{ items?.map((item, index) => (
<TokenTransferTableItem
key={ item.block_number + item.log_index + (isLoading ? index : '') }
key={ item.tx_hash + item.log_index + (isLoading ? index : '') }
item={ item }
isLoading={ isLoading }
/>
Expand Down

0 comments on commit bc1b688

Please sign in to comment.