Added proper success messages upon creation and update of building, floor, and work area for improved user feedback. #87

Merged
vikas.nale merged 1 commits from Ashtuosh_Bug#191_Incorrect_Success_Message into Issue_May_2W 2025-05-09 06:34:58 +00:00
3 changed files with 3 additions and 3 deletions

View File

@ -88,7 +88,7 @@ const BuildingModel = ({
name: "",
description: "",
});
if (data.Id !== "0") {
if (data.Id !== null) {
showToast("Building updated successfully.", "success");
} else {
showToast("Building created successfully.", "success");

View File

@ -104,7 +104,7 @@ const FloorModel = ({
reset({
floorName: "",
});
if (data.id !== "0") {
if (data.id !== null) {
showToast("Floor updated successfully.", "success");
} else {
showToast("Floor created successfully.", "success");

View File

@ -115,7 +115,7 @@ const WorkAreaModel = ({
id: "0",
areaName: "",
});
if (data.id !== "0") {
if (WorkArea.id !== null) {
showToast("WorkArea updated successfully.", "success");
} else {
showToast("WorkArea created successfully.", "success");