diff --git a/src/app/settings.service.ts b/src/app/settings.service.ts
index 6b4bb3d..9ee3272 100644
--- a/src/app/settings.service.ts
+++ b/src/app/settings.service.ts
@@ -10,7 +10,11 @@ export class SettingsService {
constructor() { }
setStudyIdForValidation(id: number) {
- localStorage.setItem(this.studyIdKey, id.toString());
+ if (id != null) {
+ localStorage.setItem(this.studyIdKey, id.toString());
+ } else {
+ localStorage.removeItem(this.studyIdKey)
+ }
}
getStudyIdForValidation() {
diff --git a/src/app/settings/settings.component.html b/src/app/settings/settings.component.html
index d027479..10ceec3 100644
--- a/src/app/settings/settings.component.html
+++ b/src/app/settings/settings.component.html
@@ -6,6 +6,7 @@
Select Study
Here you can specify a default study to use when performing validation.
+ No study selected
{{s.id}} - {{s.title}}