Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix: close reject quote modal on reject

Brad Barbin2ce73e42f56d
diff --git a/apps/erp/app/routes/share+/quote.$id.tsx b/apps/erp/app/routes/share+/quote.$id.tsx
index e147bdffe5..21eadba1ad 100644
--- a/apps/erp/app/routes/share+/quote.$id.tsx
+++ b/apps/erp/app/routes/share+/quote.$id.tsx
@@ -964,9 +964,11 @@ const Quote = ({
useEffect(() => {
if (fetcher.state === "idle" && submitted.current) {
confirmQuoteModal.onClose();
+ rejectQuoteModal.onClose();
submitted.current = false;
}
- }, [confirmQuoteModal, fetcher.state]);
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [fetcher.state]);
useEffect(() => {
if (fetcher.data?.success === true && fetcher?.data?.message) {