From 07109a81d3fc4e73c4b4fbe5c7456e9ae51c4d95 Mon Sep 17 00:00:00 2001 From: "A.Sriram" <149712877+aSriram199@users.noreply.github.com> Date: Wed, 21 Aug 2024 10:15:36 +0530 Subject: [PATCH] Fix Facility Notice functionality (#8337) --- src/Components/Facility/FacilityCard.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Components/Facility/FacilityCard.tsx b/src/Components/Facility/FacilityCard.tsx index d6c2dce2b6c..858386b72e6 100644 --- a/src/Components/Facility/FacilityCard.tsx +++ b/src/Components/Facility/FacilityCard.tsx @@ -36,6 +36,7 @@ export const FacilityCard = (props: { facility: any; userType: any }) => { Notification.Success({ msg: "Facility Notified", }); + setNotifyMessage(""); setNotifyModalFor(undefined); } else { Notification.Error({ msg: "Something went wrong..." }); @@ -224,6 +225,7 @@ export const FacilityCard = (props: { facility: any; userType: any }) => { name="message" rows={5} className="pb-2 pt-4" + value={notifyMessage} onChange={(e) => setNotifyMessage(e.value)} placeholder="Type your message..." error={notifyError}