From 53f633a67bacbe02d04c89c421c1f1f11adebfa3 Mon Sep 17 00:00:00 2001 From: shuhaib s <95394061+shuhaib-aot@users.noreply.github.com> Date: Tue, 21 Nov 2023 09:34:50 +0530 Subject: [PATCH] fixed form and resource delete message (#1754) --- forms-flow-web/src/components/Form/List.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/forms-flow-web/src/components/Form/List.js b/forms-flow-web/src/components/Form/List.js index 4722b8b254..c51f2b4c45 100644 --- a/forms-flow-web/src/components/Form/List.js +++ b/forms-flow-web/src/components/Form/List.js @@ -52,6 +52,7 @@ import { import FormTable from "./constants/FormTable"; import ClientTable from "./constants/ClientTable"; import { useMemo } from "react"; +import _ from "lodash"; const List = React.memo((props) => { const { t } = useTranslation(); const [showFormUploadModal, setShowFormUploadModal] = useState(false); @@ -633,13 +634,13 @@ const mapDispatchToProps = (dispatch, ownProps) => { if (err) { toast.error( - {(t) => t("Form deletion unsuccessful")} + {(t) => t(`${_.capitalize(formProcessData?.formType)} deletion unsuccessful`)} ); } else { toast.success( - {(t) => t("Form deleted successfully")} + {(t) => t(`${_.capitalize(formProcessData?.formType)} deleted successfully`)} ); const newFormCheckList = formCheckList.filter(