Skip to content

Commit

Permalink
Merge pull request #579 from IntersectMBO/fix/541-dashboard-infinite-…
Browse files Browse the repository at this point in the history
…loading

[#541] fix dashboard infinite loading
  • Loading branch information
jdyczka authored Mar 28, 2024
2 parents 65fd617 + a415aba commit f19d3b1
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 f19d3b1

Please sign in to comment.