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 }, });