Skip to content

Commit

Permalink
fix: show github username when no mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiancretu committed Apr 19, 2023
1 parent 4d50112 commit 77f25a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/users-mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const createUsersToString = ({
const slackUserId = s3UsersMapping?.find(
(config) => config.github_username === user
)?.slack_id;
out.push(`<@${slackUserId}>`);
slackUserId ? out.push(`<@${slackUserId}>`) : out.push(user);
return out;
}, []);

Expand Down

0 comments on commit 77f25a8

Please # to comment.