Skip to content

Commit 8973c27

Browse files
committed
fixed case where student logs in as null and is therefor not prompted to relogin
1 parent 1e7793b commit 8973c27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/scripts/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var PD = window.PD = {
2626
// }
2727
if (!storage.getItem('student-id')) {
2828
var id = prompt(PD.constant.student_id_prompt_message)
29-
storage.setItem('student-id', id);
29+
if(id!==null) storage.setItem('student-id', id);
3030
}
3131
if (!storage.getItem('user-ip')) {
3232
PD.getIP(function (ip) {

0 commit comments

Comments
 (0)