From 59acbb0093d853fe43485040ee1be84676c7ef29 Mon Sep 17 00:00:00 2001 From: Brianna Cerkiewicz Date: Thu, 16 Jan 2025 14:54:12 -0800 Subject: [PATCH] chore: add link to contacts address error --- .../components/operations/OperationInformationForm.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bciers/apps/administration/app/components/operations/OperationInformationForm.tsx b/bciers/apps/administration/app/components/operations/OperationInformationForm.tsx index fc973a1ff7..4d0a6e66cf 100644 --- a/bciers/apps/administration/app/components/operations/OperationInformationForm.tsx +++ b/bciers/apps/administration/app/components/operations/OperationInformationForm.tsx @@ -19,6 +19,7 @@ import { import { FormMode, FrontEndRoles } from "@bciers/utils/src/enums"; import { useSessionRole } from "@bciers/utils/src/sessionUtils"; import Note from "@bciers/components/layout/Note"; +import Link from "next/link"; const OperationInformationForm = ({ formData, @@ -49,6 +50,15 @@ const OperationInformationForm = ({ ); if (response?.error) { + if (response.error.includes("Please return to Contacts")) { + const splitError = response.error.split("Contacts"); + response.error = ( + <> + {splitError[0]} Contacts + {splitError[1]} + + ); + } setError(response.error); return { error: response.error }; }