Skip to content

Commit

Permalink
Simplified logic with default prop values
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Jun 18, 2024
1 parent 41fbe71 commit c2fd18a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/src/components/ArticleBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const ArticleBox = ({
<Paragraph>
<ReactMarkdown remarkPlugins={[remarkGfm]}>{description}</ReactMarkdown>
</Paragraph>
{(tags ?? []).map((tag) => (
{tags.map((tag) => (
<ColoredTag key={tag}>{tag}</ColoredTag>
))}
</ThinArticle>
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/ExtLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const ExtLink = ({
className={className}
href={href}
title={title}
{...(targetSelf !== true
{...(!targetSelf
? {
target: "_blank",
rel: "noreferrer noopener",
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/Issue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const Issue = ({
subtitle={issue.project.name}
subtitleDescription={issue.project["short-description"]}
subtitleLink={getProjectLink(issue.project)}
tags={hideTags !== true ? issue.project.tags : []}
tags={!hideTags ? issue.project.tags : []}
title={issue.title}
/>
);

0 comments on commit c2fd18a

Please sign in to comment.