Skip to content

fix: clean up debug logs, typo, and dead conditional in Sponsors Section#384

Open
AVA-NTHIKA14 wants to merge 1 commit into
anitab-org:developfrom
AVA-NTHIKA14:fix/sponsors-section-cleanup
Open

fix: clean up debug logs, typo, and dead conditional in Sponsors Section#384
AVA-NTHIKA14 wants to merge 1 commit into
anitab-org:developfrom
AVA-NTHIKA14:fix/sponsors-section-cleanup

Conversation

@AVA-NTHIKA14

Copy link
Copy Markdown

Description

Small cleanup of leftover debug code and a styling typo found while reviewing the Projects/Sponsors and AboutUs components:

  • Removed console.log(index) left in Sponsors/Section/index.js
  • Removed console.log(error) left in AboutUs/Oscommunity.js's fetch error handler
  • Removed a dead conditional {setShowMore && <Text>...}setShowMore is a state setter function, so it's always truthy and the condition had no effect
  • Fixed a typo forntSizefontSize in moreText style, which meant the "View more / Show less" link never received its intended 16px font size

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How this was tested

Ran the app locally with npm start and confirmed the Projects page sponsor sections (expand/collapse "View more") and the AboutUs page contributor icons render correctly. Existing test suite passes with npm test.

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.

1 participant