Skip to content

Commit 6c24e65

Browse files
committed
Rename variable
1 parent 192f63d commit 6c24e65

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/component/src/Attachment/Text/private/MarkdownTextContent.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,15 +247,15 @@ function MarkdownTextContent(props: MarkdownTextContentProps) {
247247
const usageInfo = messageThing?.usageInfo[0];
248248

249249
if (usageInfo) {
250-
const [pattern] = usageInfo.pattern;
250+
const [firstPattern] = usageInfo.pattern;
251251
const encryptionStatus = !!usageInfo.keywords.find(keyword => keyword === 'encrypted-content');
252252

253253
return {
254254
color:
255-
pattern &&
256-
pattern.inDefinedTermSet[0] === 'https://www.w3.org/TR/css-color-4/' &&
257-
pattern.name[0] === 'color' &&
258-
pattern.termCode[0],
255+
firstPattern &&
256+
firstPattern.inDefinedTermSet[0] === 'https://www.w3.org/TR/css-color-4/' &&
257+
firstPattern.name[0] === 'color' &&
258+
firstPattern.termCode[0],
259259
isEncrypted: encryptionStatus,
260260
name: usageInfo.name[0],
261261
title: usageInfo.description[0]

0 commit comments

Comments
 (0)