changed hardcoded data , fixed fetching of elections
-
The account addresses were hard-coded, so I fetched them using web3 provider by using the signer address making the signup process and other processes more seamless.
-
Redirection after signup is fixed (whenever a new user was created he had to manually navigate to /dashboard, fixed that issue so that it is automatically redirected).
-
list of all current elections was not visible in the table so fixed that and the details of the current user was missing from the nav bar. The problem was with useState conditional rendering and the deployed contract address of the election organizer contract.
This was an error fetching the list of all elections:
After Fixing Issue: