Skip to content

Commit

Permalink
[#541] fix dashboard infinite loading
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dyczka committed Mar 27, 2024
1 parent 4eec162 commit a415aba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion govtool/frontend/src/components/organisms/DashboardCards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ export const DashboardCards = () => {
const { votingPower } = useGetAdaHolderVotingPowerQuery(stakeKey);
const { voter } = useGetVoterInfo();

if (!currentDelegation || !voter || !votingPower) {
if (
currentDelegation === undefined
|| votingPower === undefined
|| voter === undefined
) {
return (
<Box
sx={{
Expand Down

0 comments on commit a415aba

Please sign in to comment.