ClimateMind/climatemind-frontend

Personal values questionnaire sends wrong id to backend

Svenstar74 opened this issue · 0 comments

Describe the bug

Error in sentry
When a questionnaire has been finished, an array of answers will be send to the backend. For set one of the questions, the ids should be from 1 to 10, while the set two should contain questions with ids from 11 to 20.
It seems that sometimes (that's what the sentry error log shows), an invalid id is present in a question set, like -5.

To Reproduce

It's unclear when and how this happens.

Expected behavior

When set one is used, the api call should always have ids from 1 to 10.
When set two is used, the api call should always have ids form 11 to 20.
No other ids should be possible.

Task

Unclear