bug: cannot access variable before declaration
elboletaire opened this issue · 0 comments
elboletaire commented
Describe the bug
services.fetchElection crashes due to a variable being accessed before its declaration
To Reproduce
See
vocdoni-sdk/src/services/election.ts
Lines 100 to 103 in 10ee8cf
As you can see, electionInfo
is being accessed in the same declaration, thus causing a crash.
Current behavior
Crashes
Expected behavior
Does not crash 🤗