Skip to content

Commit 2140246

Browse files
authored
Merge pull request #5770 from DjebbZ/patch-6
Minor typo in comment
2 parents c05d5ca + 7e1653e commit 2140246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ra-core/src/controller/saveModifiers.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const useSaveModifiers = ({
4242
const onFailureRef = useRef(onFailure);
4343
const setOnFailure: SetOnFailure = onFailure => {
4444
onFailureRef.current = error => {
45-
// reset onSuccess for next submission
45+
// reset onFailure for next submission
4646
onFailureRef.current = undefined;
4747
return onFailure(error);
4848
};

0 commit comments

Comments
 (0)