We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13c51ce commit 2f3b01cCopy full SHA for 2f3b01c
1 file changed
src/grading-settings/GradingSettings.jsx
@@ -81,13 +81,14 @@ const GradingSettings = ({ courseId }) => {
81
82
useEffect(() => {
83
if (savingStatus) {
84
- setShowSuccessAlert(!showSuccessAlert);
85
- setShowSavePrompt(!showSavePrompt);
+ setShowSuccessAlert(true);
+ setShowSavePrompt(false);
86
+ setIsQueryPending(false);
87
+
88
setTimeout(() => setShowSuccessAlert(false), 15000);
- setIsQueryPending(!isQueryPending);
89
window.scrollTo({ top: 0, behavior: 'smooth' });
90
}
- }, [savePending]);
91
+ }, [savingStatus]);
92
93
if (isLoadingDenied) {
94
return (
0 commit comments