gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[reclaim-ui] 266/459: include(s)


From: gnunet
Subject: [reclaim-ui] 266/459: include(s)
Date: Fri, 11 Jun 2021 23:25:58 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository reclaim-ui.

commit 5562fd363ff07ab853767584b74bf824eb42cdb9
Author: Martin Schanzenbach <mschanzenbach@posteo.de>
AuthorDate: Thu Aug 6 09:29:06 2020 +0200

    include(s)
---
 src/app/open-id.service.ts | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/app/open-id.service.ts b/src/app/open-id.service.ts
index b1cfff9..a7d2282 100644
--- a/src/app/open-id.service.ts
+++ b/src/app/open-id.service.ts
@@ -154,7 +154,12 @@ export class OpenIdService {
     var scopes = this.getRequestedScope();
     var res = [];
     for (var i = 0; i < scopes.length; i++) {
-      res.push(this.scopesDescriptions[scopes[i]])
+      if (undefined === this.scopesDescriptions[scopes[i]])
+      {
+        res.push(scopes[i]);
+      } else {
+        res.push(this.scopesDescriptions[scopes[i]])
+      }
     }
     return res;
   }
@@ -192,19 +197,19 @@ export class OpenIdService {
   }
 
   isProfileRequested(): boolean {
-    return this.getRequestedScope().include("profile");
+    return this.getRequestedScope().includes("profile");
   }
 
   isEmailRequested(): boolean {
-    return this.getRequestedScope().include("email");
+    return this.getRequestedScope().includes("email");
   }
 
   isPhoneRequested(): boolean {
-    return this.getRequestedScope().include("phone");
+    return this.getRequestedScope().includes("phone");
   }
 
   isAddressRequested(): boolean {
-    return this.getRequestedScope().include("address");
+    return this.getRequestedScope().includes("address");
   }
 
   getStandardProfileClaims(): Object {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]