Skip to content

Commit

Permalink
Merge pull request #33 from Cardinal-Cryptography/bugfix-for-search
Browse files Browse the repository at this point in the history
A0-1384 Fix for order of calling react hooks.
  • Loading branch information
Marcin-Radecki authored Sep 27, 2022
2 parents 30d21e7 + 5941740 commit ff8e7fe
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/page-staking/src/Performance/Address/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,15 @@ function Address ({ address, blocksCreated, blocksTarget, filterName, rewardPerc
[api, accountInfo, address, filterName]
);

if (!isVisible) {
return null;
}

// eslint-disable-next-line react-hooks/rules-of-hooks
const onQueryStats = useCallback(
() => queryAddress(address),
[address]
);

if (!isVisible) {
return null;
}

return (
<tr>
<td className='address'>
Expand Down

0 comments on commit ff8e7fe

Please sign in to comment.