Skip to content

Commit

Permalink
Update admindashboard.js
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnilbamble1438 committed Jan 12, 2024
1 parent bfdc228 commit 72d8021
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion admindashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,22 @@ function showAdminDashboard()
let c3totalvotes = candidatesObj[2];
let c4totalvotes = candidatesObj[3];

if( c1totalvotes == undefined )
{
c1totalvotes = 0;
}
if(c2totalvotes == undefined)
{
c2totalvotes = 0;
}
if(c3totalvotes == undefined)
{
c3totalvotes = 0;
}
if(c4totalvotes == undefined)
{
c4totalvotes = 0
}



Expand All @@ -28,4 +44,4 @@ function showAdminDashboard()



}
}

0 comments on commit 72d8021

Please sign in to comment.