Skip to content

Commit

Permalink
fix(block): extra null block request
Browse files Browse the repository at this point in the history
  • Loading branch information
Daryl-L committed Aug 7, 2024
1 parent 78ef8fb commit 0ec4ab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/BlockDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default () => {
const queryBlockTransactions = useQuery(
['block-transactions', blockHash, currentPage, pageSizeParam, filter],
async () => {
assert(blockHash != null)
assert(blockHash !== '')
try {
const { transactions, total, pageSize } = await explorerService.api.fetchTransactionsByBlockHash(blockHash, {
page: currentPage,
Expand Down

0 comments on commit 0ec4ab8

Please sign in to comment.