Skip to content

Commit

Permalink
fix(surveys): nps results fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liyiy committed Sep 13, 2023
1 parent 2e1a48b commit fc8c304
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/scenes/surveys/SurveyView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,9 @@ function SurveyNPSResults({ survey }: { survey: Survey }): JSX.Element {
kind: NodeKind.TrendsQuery,
dateRange: {
date_from: dayjs(survey.created_at).format('YYYY-MM-DD'),
date_to: dayjs().format('YYYY-MM-DD'),
date_to: survey.end_date
? dayjs(survey.end_date).format('YYYY-MM-DD')
: dayjs().format('YYYY-MM-DD'),
},
series: [
{
Expand Down

0 comments on commit fc8c304

Please sign in to comment.