Skip to content

Commit

Permalink
fix(document-survey): hide for writers (#9893)
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner authored Nov 3, 2023
1 parent b6fbceb commit ee8a59d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/ui/molecules/document-survey/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { getSurveyState, writeSurveyState } from "./utils";
import { useIsServer } from "../../../hooks";
import { Icon } from "../../atoms/icon";
import { useLocation } from "react-router";
import { DEV_MODE, WRITER_MODE } from "../../../env";

const FORCE_SURVEY_PREFIX = "#FORCE_SURVEY=";

Expand All @@ -18,7 +19,7 @@ export function DocumentSurvey({ doc }: { doc: Doc }) {
const survey = React.useMemo(
() =>
SURVEYS.find((survey) => {
if (isServer) {
if (isServer || (WRITER_MODE && !DEV_MODE)) {
return false;
}

Expand Down

0 comments on commit ee8a59d

Please sign in to comment.