fix: responses not visible when sdk not connected (#1074)

This commit is contained in:
Matti Nannt
2023-10-10 14:11:19 +02:00
committed by GitHub
parent cb6c1aade6
commit cff23f497c
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ export default function ResponseTimeline({
}: ResponseTimelineProps) {
return (
<div className="space-y-4">
{survey.type === "web" && !environment.widgetSetupCompleted ? (
{survey.type === "web" && responses.length === 0 && !environment.widgetSetupCompleted ? (
<EmptyInAppSurveys environment={environment} />
) : responses.length === 0 ? (
<EmptySpaceFiller

View File

@@ -48,7 +48,7 @@ export default function SummaryList({ environment, survey, responses }: SummaryL
return (
<>
<div className="mt-10 space-y-8">
{survey.type === "web" && !environment.widgetSetupCompleted ? (
{survey.type === "web" && responses.length === 0 && !environment.widgetSetupCompleted ? (
<EmptyInAppSurveys environment={environment} />
) : responses.length === 0 ? (
<EmptySpaceFiller