-
Notifications
You must be signed in to change notification settings - Fork 3k
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
The "I accept the Expensify Terms of Service" checkbox not checked when retuning from step 2 #20871
Comments
Triggered auto assignment to @slafortune ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The checkbox values are not retained when returning back to the previous step. What is the root cause of that problem?The root cause of this issue is that we're using two props to determine if the checkbox is checked. We're using What changes do you think we should make in order to solve the problem?The simplest way to fix this is to change
What alternative solutions did you explore? (Optional)We can also remove |
ProposalPlease re-state the problem that we are trying to solve in this issue.The "I accept the Expensify Terms of Service" checkbox not checked when retuning from step 2 What is the root cause of that problem?I agree with Sibtain's proposal about the root cause of this issue is about the code inside App/src/components/CheckboxWithLabel.js Lines 92 to 94 in bd0e843
What changes do you think we should make in order to solve the problem?Since App/src/components/CheckboxWithLabel.js Line 84 in bd0e843
So our // we should update the checkbox value when props.value is changed, because our isChecked state isn't re-calculated
useEffect(() => {
setIsChecked(props.isChecked || props.value);
}, [props.isChecked, props.value]); What alternative solutions did you explore? (Optional)N/A |
It's fixed in this PR #20091 |
I agree has already been fixed in my PR. Closing. |
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:
The "I accept the Expensify Terms of Service" checkbox should be checked after returning from step 2 and should displayed error message if unchecked
Actual Result:
The "I accept the Expensify Terms of Service" checkbox not checked when retuning from step 2 and not throwing an error
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.28.3
Reproducible in staging?: yes
Reproducible in production?: yes
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
2023-06-06.13-19-09.mp4
Recording.3131.mp4
Expensify/Expensify Issue URL:
Issue reported by: @ayazhussain79
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686240081221059
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: