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

Fixed conditional statement for rendering of pageInfoItem.number #23

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

jarellb
Copy link
Contributor

@jarellb jarellb commented Jul 9, 2024

Ticket Link

GROUPINGS-1721

List of squashed commits

  • Fixed conditional statement for rendering of pageInfoItem.number
  • Changed conditional statement for pageInfoItem.number to render 0 for null values
  • Fixed bug where Admin component displayed a number count
  • Removed !important

Test Checklist

  • Unit Tests Passed
  • Integration Tests Passed
  • General Visual Inspection

@JorWo
Copy link
Contributor

JorWo commented Jul 10, 2024

Not a total fan of nested ternary operators, but maybe you could use the ?? operator instead?
For example, {pageInfoItem.number ?? 0}

Comment on lines 110 to 112
{pageInfoItem.number
&& <span className="text-[2.5rem] text-text-color">{pageInfoItem.number}</span>}
Copy link
Contributor

Choose a reason for hiding this comment

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

{ pageInfoItem.number !== null might work too, not really sure how your 0 comes up as unstyled.

@jarellb
Copy link
Contributor Author

jarellb commented Jul 12, 2024

Ticket postponed because logic code shouldn't be in the UI and this problem has been identified as a possible API issue

@jarellb jarellb force-pushed the dev-jarellab-1721 branch from 397e3e7 to 102b0c4 Compare July 23, 2024 20:22
@jarellb jarellb force-pushed the dev-jarellab-1721 branch 2 times, most recently from e17d977 to 41a3c1c Compare August 6, 2024 06:19
@jarellb jarellb force-pushed the dev-jarellab-1721 branch from 41a3c1c to 5e03eda Compare August 6, 2024 06:34
@JorWo JorWo merged commit 6864045 into uhawaii-system-its-ti-iam:main Aug 6, 2024
6 checks passed
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.

2 participants