diff --git a/OpenIdAuthentication/lambda/index.js b/OpenIdAuthentication/lambda/index.js index ae2aea8..fff7385 100755 --- a/OpenIdAuthentication/lambda/index.js +++ b/OpenIdAuthentication/lambda/index.js @@ -154,8 +154,8 @@ const sendRes = (event, context, callback) => { roleArn = cognitoUnAuthorizedRoleArn; } - const resetDisabled = resetDisabledParam === "true" ? true : false; - const undoRedoDisabled = undoRedoDisabledParam === "true" ? true : false; + const resetDisabled = resetDisabledParam === "true"; + const undoRedoDisabled = undoRedoDisabledParam === "true"; const registerUserPromise = registerUser(accountId, sessionName, roleArn); registerUserPromise.then(function(){ diff --git a/QuickSightAuthentication/lambda/index.js b/QuickSightAuthentication/lambda/index.js index d6bf43d..99fb49e 100755 --- a/QuickSightAuthentication/lambda/index.js +++ b/QuickSightAuthentication/lambda/index.js @@ -78,8 +78,8 @@ const sendRes = (event, context, callback) => { callback(error); } - const resetDisabled = resetDisabledParam === "true" ? true : false; - const undoRedoDisabled = undoRedoDisabledParam === "true" ? true : false; + const resetDisabled = resetDisabledParam === "true"; + const undoRedoDisabled = undoRedoDisabledParam === "true"; const getDashboardEmbedUrlPromise = getDashboardURL(accountId, dashboardId, userArn, resetDisabled, undoRedoDisabled); getDashboardEmbedUrlPromise.then(function(result){