Skip to content

Commit

Permalink
DOP-4481-hotfix fix conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Apr 18, 2024
1 parent 8a37d90 commit 197ae54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ export class SlackConnector implements ISlackConnector {
console.log(stateValues);
// if deploy all was selected:
if (
stateValues['block_deploy_option'] &&
stateValues['block_deploy_option']['deploy_option']?.selected_option?.value == 'deploy_all'
stateValues['block_deploy_option']?.deploy_option &&
stateValues['block_deploy_option']?.deploy_option?.selected_option?.value == 'deploy_all'
) {
if (!isAdmin) {
throw new Error('User is not an admin and therefore not entitled to deploy all repos');
Expand Down

0 comments on commit 197ae54

Please sign in to comment.