From 555b53fd7c412bd6a5efdf1c93440987f876c3d9 Mon Sep 17 00:00:00 2001 From: ibolton336 Date: Thu, 20 Jul 2023 12:13:01 -0400 Subject: [PATCH] :bug: Fix missing notification for adding tracker Signed-off-by: ibolton336 --- client/src/app/pages/external/jira/tracker-form.tsx | 4 ++-- client/src/app/queries/trackers.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/app/pages/external/jira/tracker-form.tsx b/client/src/app/pages/external/jira/tracker-form.tsx index aae23807be..db090f22a2 100644 --- a/client/src/app/pages/external/jira/tracker-form.tsx +++ b/client/src/app/pages/external/jira/tracker-form.tsx @@ -78,7 +78,7 @@ export const TrackerForm: React.FC = ({ const onCreateTrackerSuccess = (_: AxiosResponse) => pushNotification({ title: t("toastr.success.save", { - type: t("terms.instance").toLocaleLowerCase(), + type: t("terms.instance"), }), variant: "success", }); @@ -95,7 +95,7 @@ export const TrackerForm: React.FC = ({ const onUpdateTrackerSuccess = (_: AxiosResponse) => pushNotification({ title: t("toastr.success.save", { - type: t("terms.instance").toLocaleLowerCase(), + type: t("terms.instance"), }), variant: "success", }); diff --git a/client/src/app/queries/trackers.ts b/client/src/app/queries/trackers.ts index 73ad9c5ec0..a0a05cffb2 100644 --- a/client/src/app/queries/trackers.ts +++ b/client/src/app/queries/trackers.ts @@ -40,8 +40,8 @@ export const useCreateTrackerMutation = ( const queryClient = useQueryClient(); return useMutation({ mutationFn: createTracker, - onSuccess: () => { - onSuccess; + onSuccess: (res) => { + onSuccess(res); queryClient.invalidateQueries([TrackersQueryKey]); }, onError: onError,