From 4902b31270349c0a3590c6da8cf0099e1f697f46 Mon Sep 17 00:00:00 2001 From: Michael Rogers Date: Wed, 21 Jun 2023 17:47:11 -0500 Subject: [PATCH] Return null instead of undefined --- src/api/user/UserAPI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/user/UserAPI.js b/src/api/user/UserAPI.js index fbe8468510..5e2901cdfe 100644 --- a/src/api/user/UserAPI.js +++ b/src/api/user/UserAPI.js @@ -136,7 +136,7 @@ class UserAPI extends EventEmitter { */ canProvideStatusForRole() { if (!this || !this.hasProvider()) { - return Promise.resolve(undefined); + return null; } const activeRole = this.getActiveRole();