Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show dataIcon i AccordionButton when data in Task #18

Merged
merged 1 commit into from
Sep 7, 2023
Merged

Conversation

johannabjoremo
Copy link
Collaborator

No description provided.

@@ -38,6 +41,7 @@ export const TaskAccordionButton: React.FC<TaskAccordionButtonProps> = ({
}
consecutiveFailures={consecutiveFailures}
/>
{taskData != 'null' && <AttachmentIcon />}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blir taskData stringen faktisk stringen 'null'? Eller verdien null?
Javascript er ganske spesielt, fordi både tom string '' og null blir false. Så derfor kan du egentlig forkorte dette litt: taskData && <AttachmentIcon />

@vegarrsm vegarrsm merged commit e323883 into main Sep 7, 2023
2 checks passed
@johannabjoremo johannabjoremo deleted the dataIcon branch December 11, 2023 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants