Alexis Bruneteau e10a882667 fix: Call correct /api/elections/active endpoint and handle array response
The blockchain page was calling /api/elections instead of
/api/elections/active, resulting in 404 Not Found errors.

The API returns an array directly, not wrapped in an object,
so updated response parsing to handle both formats.

This fixes 'Error fetching elections: Impossible de charger
les élections' error on the blockchain dashboard page.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-07 17:16:13 +01:00
Description
No description provided
2.6 MiB
Languages
JavaScript 37.7%
Python 28.6%
CSS 26%
Typst 4.1%
Shell 2.4%
Other 1.2%