Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-aurele-besner committed Jan 18, 2025
1 parent 95baf20 commit 5a4ee73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion explorer/src/components/Consensus/Block/Block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const Block: FC = () => {
const { loading, setIsVisible } = useIndexersQuery<BlockByIdQuery, BlockByIdQueryVariables>(
QUERY_BLOCK_BY_ID,
{
variables: { blockId: blockId ?? '0', blockHash: blockId?.toString() ?? '' },
variables: { blockId: blockId ?? '0', blockHash: blockId ?? '' },
skip: !inFocus,
},
Routes.consensus,
Expand Down
2 changes: 1 addition & 1 deletion explorer/src/components/Consensus/Block/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const QUERY_BLOCKS = gql`
`

export const QUERY_BLOCK_BY_ID = gql`
query BlockById($blockId: numeric!, $blockHash: String!) {
query BlockById($blockId: String!, $blockHash: String!) {
consensus_blocks(where: { _or: [{ id: { _eq: $blockId } }, { hash: { _eq: $blockHash } }] }) {
id
height
Expand Down

0 comments on commit 5a4ee73

Please sign in to comment.