From 3ec9691d35b37be079f94ad07b0fa4c24f0987ec Mon Sep 17 00:00:00 2001 From: Vincent <407859+vincentchalamon@users.noreply.github.com> Date: Fri, 28 Jun 2024 15:40:56 +0200 Subject: [PATCH] fix: fix notification message on CreateGuesser (#567) --- src/useOnSubmit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/useOnSubmit.ts b/src/useOnSubmit.ts index fcbbc49b..a7f6a570 100644 --- a/src/useOnSubmit.ts +++ b/src/useOnSubmit.ts @@ -65,7 +65,7 @@ const useOnSubmit = ({ const success = mutationOptions?.onSuccess ?? ((record: RaRecord) => { - notify('ra.notification.updated', { + notify(isCreate ? 'ra.notification.created' : 'ra.notification.updated', { type: 'info', messageArgs: { smart_count: 1 }, });