Skip to content

Commit

Permalink
clean log
Browse files Browse the repository at this point in the history
  • Loading branch information
anjanaw committed Feb 9, 2024
1 parent 836a08d commit 7ca0bc2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/iSee/question/QuestionnaireTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,10 @@ const QuestionnaireTab: React.FC<PersonaType> = ({
};

async function saveQuestionnaire() {
console.log('%c Saving.... ', 'font-size: 20px; color: orange;');
const errors = questions.map((q) => isQuestionValid(q) as string[]);
setIsChangedQuestion(false);

if (errors.reduce((prev, curr) => [...prev, ...curr], []).length === 0) {
console.log('%c Valid ! ', 'font-size: 20px; color: green;');
const intent = persona.intents?.find((i) => i.name === intent_cat);
if (intent) {
await api_persona_update_intent(usecaseId, persona._id, intent.id, {
Expand Down

0 comments on commit 7ca0bc2

Please sign in to comment.