Skip to content

Commit

Permalink
style(block): use falsy condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Daryl-L committed Aug 7, 2024
1 parent 0ec4ab8 commit dc82326
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 !== '')
assert(!!blockHash)
try {
const { transactions, total, pageSize } = await explorerService.api.fetchTransactionsByBlockHash(blockHash, {
page: currentPage,
Expand Down

0 comments on commit dc82326

Please sign in to comment.