From c4704aa2985a803ef3ebe9e42749c1cf01e29dd9 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 4 Apr 2023 23:03:48 -0400 Subject: [PATCH] fix(striker-ui): rename message id in manage manifest --- .../components/ManageManifest/ManageManifestPanel.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/striker-ui/components/ManageManifest/ManageManifestPanel.tsx b/striker-ui/components/ManageManifest/ManageManifestPanel.tsx index a6dbdc3f..4d5f673f 100644 --- a/striker-ui/components/ManageManifest/ManageManifestPanel.tsx +++ b/striker-ui/components/ManageManifest/ManageManifestPanel.tsx @@ -45,7 +45,7 @@ import useFormUtils from '../../hooks/useFormUtils'; import useIsFirstRender from '../../hooks/useIsFirstRender'; import useProtectedState from '../../hooks/useProtectedState'; -const MSG_ID_API = 'api'; +const MSG_ID_MANIFEST_API = 'api'; const getFormData = ( ...[{ target }]: DivFormEventHandlerParameters @@ -237,7 +237,7 @@ const ManageManifestPanel: FC = () => { api[method](url, body) .then(() => { - setMessage(MSG_ID_API, { + setMessage(MSG_ID_MANIFEST_API, { children: successMsg, }); }) @@ -245,7 +245,7 @@ const ManageManifestPanel: FC = () => { const emsg = handleAPIError(apiError); emsg.children = getErrorMsg(emsg.children); - setMessage(MSG_ID_API, emsg); + setMessage(MSG_ID_MANIFEST_API, emsg); }) .finally(() => { setIsSubmittingForm(false);