mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-23 05:17:49 -05:00
Fix Link Survey also showing for In-Product Surveys (#727)
This commit is contained in:
@@ -10,7 +10,7 @@ import SurveyInactive from "@/app/s/[surveyId]/SurveyInactive";
|
||||
export default async function LinkSurveyPage({ params }) {
|
||||
const survey = await getSurvey(params.surveyId);
|
||||
|
||||
if (!survey) {
|
||||
if (!survey || survey.type !== "link") {
|
||||
return <SurveyInactive status="not found" />;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user