Skip to content

Commit

Permalink
Merge pull request #236 from vrrao01/SWCIITGWeb-patch-1
Browse files Browse the repository at this point in the history
Update voter_card.dart
  • Loading branch information
Hareesh-Nandigrama authored Mar 16, 2023
2 parents 871b241 + 6257e61 commit 60da5f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/pages/elections/voter_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ class _VoterCardState extends State<VoterCard> {
"Dual Degree": "Dual",
"MA": "MA",
"MSR": "MSR",
"MBA": "MBA"
"MBA": "MBA",
"Others":"Others"
};

String getBranch(String input)
Expand Down Expand Up @@ -89,7 +90,7 @@ class _VoterCardState extends State<VoterCard> {
return FutureBuilder<Response>(
future: dio.post("https://swc.iitg.ac.in/elections_api/sgc/voting/get_eprofile/",data: {"email" : widget.email}),
builder: (context, snapshot) {
if(!snapshot.hasData){
if(!snapshot.hasData || snapshot.hasError){
return Center(child: ListShimmer(
count: 1,
height: 750,
Expand Down

0 comments on commit 60da5f4

Please sign in to comment.