Closed wa0x6e closed 7 months ago
Closes #256
Current votes report looks at the type of the returned choices object (number, number[], or {}), to decide how to format them on the CSV file.
This fail on proposals with shutter, which return a string when not closed yet, and still a string when the choice is invalid (edge case)
yarn test
curl -X POST localhost:3005/api/votes/0x0da0673d17298e8f52c88385959952d21c2d0ae2fff2f0fea9df02ca0590cb6a
🧿 Current issues / What's wrong ?
Closes #256
Current votes report looks at the type of the returned choices object (number, number[], or {}), to decide how to format them on the CSV file.
This fail on proposals with shutter, which return a string when not closed yet, and still a string when the choice is invalid (edge case)
💊 Fixes / Solution
🛠️ Tests
yarn test
curl -X POST localhost:3005/api/votes/0x0da0673d17298e8f52c88385959952d21c2d0ae2fff2f0fea9df02ca0590cb6a