issue toast after question id upate

This commit is contained in:
Johannes
2023-05-08 17:07:22 +02:00
parent 9b42808d6d
commit bfcc62e8ff

View File

@@ -3,6 +3,7 @@
import { Button, Input, Label } from "@formbricks/ui";
import { CheckIcon } from "@heroicons/react/24/solid";
import { useState } from "react";
import toast from "react-hot-toast";
export default function UpdateQuestionId({ localSurvey, question, questionIdx, updateQuestion }) {
const [currentValue, setCurrentValue] = useState(question.id);
@@ -16,6 +17,7 @@ export default function UpdateQuestionId({ localSurvey, question, questionIdx, u
return;
}
updateQuestion(questionIdx, { id: currentValue });
toast.success("Question ID updated.");
};
return (