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

Change the title of inspection card #1325

Closed
wants to merge 1 commit into from

Conversation

prasm313
Copy link
Contributor

No description provided.

@prasm313 prasm313 added the frontend Frontend related functionality label Jan 10, 2024
@prasm313 prasm313 self-assigned this Jan 10, 2024
@prasm313 prasm313 requested a review from anetteu January 10, 2024 09:38
@@ -70,10 +70,8 @@ const DeckCard = ({ deckData, deckName, setSelectedDeck, selectedDeck, handleSch
</StyledDict.Content>
))}
</StyledDict.TopDeckText>
{deckData.areas && <Typography variant={'body_short'}>{formattedAreaNames}</Typography>}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you try to explain why we no longer need to check for deck.areas and deck.inspections?

Copy link
Contributor

Choose a reason for hiding this comment

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

They cannot be undefined so it will always be true. Can alternatively check if its an empty list but that will not be triggered by checking if deckData.areas is true

Copy link
Contributor

Choose a reason for hiding this comment

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

Have you tested when deck.areas is empty? I remember having some issues with something similar, not sure if it was the same, but if you have tested it with empy values and it's good then I think it can be merged

Copy link
Contributor

Choose a reason for hiding this comment

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

I think I hard-coded it to [] and the text still showed. Its been a few days, so don't fully remember

@prasm313 prasm313 removed the request for review from anetteu February 6, 2024 13:27
@prasm313 prasm313 closed this Apr 3, 2024
@prasm313 prasm313 deleted the Inspection-card-title branch May 13, 2024 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Frontend related functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants