diff --git a/client/src/app/pages/assessment-management/import-questionnaire-form/import-questionnaire-form.tsx b/client/src/app/pages/assessment-management/import-questionnaire-form/import-questionnaire-form.tsx index abb3b72634..4e4e58f677 100644 --- a/client/src/app/pages/assessment-management/import-questionnaire-form/import-questionnaire-form.tsx +++ b/client/src/app/pages/assessment-management/import-questionnaire-form/import-questionnaire-form.tsx @@ -56,12 +56,13 @@ export const ImportQuestionnaireForm: React.FC< trigger, } = methods; - const onHandleSuccessfullQuestionnaireCreation = ( - response: Questionnaire - ) => { + const onHandleSuccessfulQuestionnaireCreation = (response: Questionnaire) => { onSaved(response); pushNotification({ - title: t("toastr.success.questionnaireCreated"), + title: t("toastr.success.createWhat", { + type: t("terms.questionnaire"), + what: response.name, + }), variant: "success", }); onSaved(); @@ -75,7 +76,7 @@ export const ImportQuestionnaireForm: React.FC< }; const { mutate: createQuestionnaire } = useCreateQuestionnaireMutation( - onHandleSuccessfullQuestionnaireCreation, + onHandleSuccessfulQuestionnaireCreation, onHandleFailedQuestionnaireCreation );