Skip to content

Commit

Permalink
fix: make sure text is string
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Sep 6, 2022
1 parent e240a00 commit 23907cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slack/utils.ts
Expand Up @@ -12,7 +12,7 @@ export const escapeText = (text: string): string => {
};

export const createLink = (url: string, text: string): string => {
return `<${url}|${escapeText(text)}>`;
return `<${url}|${escapeText(text || '')}>`;
};

export const createPrLink = (
Expand Down

0 comments on commit 23907cd

Please sign in to comment.