diff --git a/www/js/metrics/SurveyComparisonCard.tsx b/www/js/metrics/SurveyComparisonCard.tsx index 9b1f31816..a99a604eb 100644 --- a/www/js/metrics/SurveyComparisonCard.tsx +++ b/www/js/metrics/SurveyComparisonCard.tsx @@ -121,7 +121,11 @@ const SurveyComparisonCard = ({ userMetrics, aggMetrics }: Props) => { style={cardStyles.title(colors)} /> - {myResponsePct ? ( + {typeof myResponsePct !== 'number' || typeof othersResponsePct !== 'number' ? ( + + {t('metrics.chart-no-data')} + + ) : ( {t('main-metrics.survey-response-rate')} @@ -130,10 +134,6 @@ const SurveyComparisonCard = ({ userMetrics, aggMetrics }: Props) => { - ) : ( - - {t('metrics.chart-no-data')} - )}