Skip to content

Commit 3ec9691

Browse files
fix: fix notification message on CreateGuesser (#567)
1 parent 479fec4 commit 3ec9691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/useOnSubmit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const useOnSubmit = ({
6565
const success =
6666
mutationOptions?.onSuccess ??
6767
((record: RaRecord) => {
68-
notify('ra.notification.updated', {
68+
notify(isCreate ? 'ra.notification.created' : 'ra.notification.updated', {
6969
type: 'info',
7070
messageArgs: { smart_count: 1 },
7171
});

0 commit comments

Comments
 (0)