Skip to content

Commit 8117824

Browse files
committed
fix preview keyword
1 parent 550d07e commit 8117824

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/codeKeywords/codeKeywords.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export function makeKeywordsClickable(children: React.ReactNode) {
2727
if (ORG_AUTH_TOKEN_REGEX.test(child)) {
2828
makeOrgAuthTokenClickable(arr, child);
2929
} else if (KEYWORDS_REGEX.test(child)) {
30-
const isProjectKeyword = child.startsWith('"___PROJECT_SLUG___"');
31-
makeProjectKeywordsClickable(arr, child, isProjectKeyword);
30+
const isDSNKeyword = child.startsWith('"___PUBLIC_DSN___"');
31+
makeProjectKeywordsClickable(arr, child, isDSNKeyword);
3232
} else {
3333
arr.push(child);
3434
}
@@ -46,15 +46,15 @@ function makeOrgAuthTokenClickable(arr: ChildrenItem[], str: string) {
4646
function makeProjectKeywordsClickable(
4747
arr: ChildrenItem[],
4848
str: string,
49-
isProjectKeyword = false
49+
isDSNKeyword = false
5050
) {
5151
runRegex(arr, str, KEYWORDS_REGEX, (lastIndex, match) => (
5252
<KeywordSelector
5353
key={`project-keyword-${lastIndex}`}
5454
index={lastIndex}
5555
group={match[1] || 'PROJECT'}
5656
keyword={match[2]}
57-
showPreview={isProjectKeyword}
57+
showPreview={isDSNKeyword}
5858
/>
5959
));
6060
}

0 commit comments

Comments
 (0)