15803: Add checks that user uuid (from getUserUuid) is defined
[arvados-workbench2.git] / src / services / auth-service / auth-service.ts
index 63cdd08cbffee99764d0b1efa0c7e6e279e0a7e6..c6e93a8fe777210e45d8f8a4a1bc9f2abb7fec33 100644 (file)
@@ -44,7 +44,7 @@ export class AuthService {
     public saveApiToken(token: string) {
         localStorage.setItem(API_TOKEN_KEY, token);
         const sp = token.split('/');
-        if (sp.length == 3) {
+        if (sp.length === 3) {
             localStorage.setItem(HOME_CLUSTER, sp[1].substr(0, 5));
         }
     }