From fb99f031141805f5a8ad87bcc1669373ba3c9b0b Mon Sep 17 00:00:00 2001 From: jonathangoulding Date: Mon, 29 Apr 2024 13:59:02 +0100 Subject: [PATCH] fix: sonar cloud --- app/presenters/licences/view-licence.presenter.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/presenters/licences/view-licence.presenter.js b/app/presenters/licences/view-licence.presenter.js index 631ecd7056..48d4ba66ba 100644 --- a/app/presenters/licences/view-licence.presenter.js +++ b/app/presenters/licences/view-licence.presenter.js @@ -134,7 +134,9 @@ function _endDate (expiredDate) { } function _getAuthRoles (auth) { - return auth?.credentials?.roles?.map(role => role?.role) || null + return auth?.credentials?.roles?.map((role) => { + return role?.role + }) || null } function _generateAbstractionContent (pointDetail) {