mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-09 16:19:31 -06:00
fix: NPS question issue
This commit is contained in:
@@ -40,7 +40,7 @@ export default function ResponseTimeline({
|
||||
// iterate over survey questions and build the updated response
|
||||
for (const question of survey.questions) {
|
||||
const answer = response.data[question.id];
|
||||
if (answer) {
|
||||
if (answer !== null && answer !== undefined) {
|
||||
updatedResponse.push({
|
||||
id: createId(),
|
||||
question: question.headline,
|
||||
|
||||
@@ -55,7 +55,7 @@ export default function NPSQuestion({
|
||||
onClick={() => {
|
||||
if (question.required) {
|
||||
onSubmit({
|
||||
[question.id]: value,
|
||||
[question.id]: number,
|
||||
});
|
||||
}
|
||||
onChange({ [question.id]: number });
|
||||
|
||||
Reference in New Issue
Block a user