Closed kavimuru closed 1 year ago
Triggered auto assignment to @JmillsExpensify (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
Platforms
in OP are ✅)Proposal by @daraksha-dk
Console warning at payments page
It's happening when the value for shouldShowMakeDefaultButton
is false, resulting false
being passed to style prop which will cause warning.
To fix this, we can either update style's propType definition to accept boolean values or we can just update this line like below:
style={shouldShowMakeDefaultButton ? [styles.mt4] : undefined}
We can update the definition to include boolean here and use stylePropTypes
here
@JmillsExpensify this issue is a dupe and already fixed here https://github.com/Expensify/App/pull/20117 and this can be closed
Thank you! I wasn't able to reproduce any console errors on the latest, so I do think we're good here. Please re-open if I've missed something.
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
There shouldn't be any console warning
Actual Result:
We get a console warning
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: DEV Reproducible in staging?: N/A Reproducible in production?: N/A If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/43996225/7fe86741-df66-4bb3-98fd-3d200e228ba1
Expensify/Expensify Issue URL: Issue reported by: @daraksha-dk Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684868310292979
View all open jobs on GitHub