Spaces:
Sleeping
Sleeping
Update student_login.py
Browse files- student_login.py +7 -5
student_login.py
CHANGED
|
@@ -101,12 +101,14 @@ def logout_student(n_clicks):
|
|
| 101 |
clientside_callback(
|
| 102 |
"""
|
| 103 |
function(storeData) {
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
|
|
|
|
|
|
|
|
|
| 108 |
}
|
| 109 |
-
return true;
|
| 110 |
}
|
| 111 |
""",
|
| 112 |
Output("student-login-modal", "opened"),
|
|
|
|
| 101 |
clientside_callback(
|
| 102 |
"""
|
| 103 |
function(storeData) {
|
| 104 |
+
try {
|
| 105 |
+
if (storeData && storeData !== "") {
|
| 106 |
+
return false;
|
| 107 |
+
}
|
| 108 |
+
return true;
|
| 109 |
+
} catch(e) {
|
| 110 |
+
return true;
|
| 111 |
}
|
|
|
|
| 112 |
}
|
| 113 |
""",
|
| 114 |
Output("student-login-modal", "opened"),
|