The title is a bit weird, but it's because we're using multiple default cases (in rendering switches) that can fail if we're not sure about the type of voting we're rendering. Here's an example:
https://explorer.vote/process/6b342d99f2187bf87ae56dfceaf3b6531c336365830e460e212d02000000006d/1
As you can see, the reuslts show like there's one vote for the first option. Now, if you check the Raw tab, you'll see the array of results is huge, and it's not being properly rendered.
This is because this type of voting is a "cumulative voting", something we didn't take into account when building our components. Since this is something can happen more often than we think, all the components that are rendering different based on the type of voting, should stop doing that. Not sure what's the best solution here... depending on the view we should do additional checks to hide some tabs (i.e. in processes we'll have to hide the results one, since we cannot render it).
This has to be reviewed process-wide, which includes other places like ui-components, where we may have some of these defaults.
The title is a bit weird, but it's because we're using multiple
defaultcases (in renderingswitches) that can fail if we're not sure about the type of voting we're rendering. Here's an example:https://explorer.vote/process/6b342d99f2187bf87ae56dfceaf3b6531c336365830e460e212d02000000006d/1
As you can see, the reuslts show like there's one vote for the first option. Now, if you check the
Rawtab, you'll see the array of results is huge, and it's not being properly rendered.This is because this type of voting is a "cumulative voting", something we didn't take into account when building our components. Since this is something can happen more often than we think, all the components that are rendering different based on the type of voting, should stop doing that. Not sure what's the best solution here... depending on the view we should do additional checks to hide some tabs (i.e. in processes we'll have to hide the results one, since we cannot render it).
This has to be reviewed process-wide, which includes other places like ui-components, where we may have some of these defaults.