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

ROD-138 Add logic to hide information if user selects they are a sponsor #62

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

MikeMaratheftis
Copy link
Contributor

What?

ROD-138 - Date of submission and Cancelling application? should not appear if the person completing the form is a sponsor.

Why?

How?

  • Added logic

Testing?

Tested on local machine

Screenshots (optional)

Anything Else? (optional)

Check list

  • I have reviewed my own pull request for linting issues (e.g. adding new lines)
  • I have written tests (if relevant)
  • I have created a JIRA number for my branch
  • I have created a JIRA number for my commit
  • I have followed the chris beams method for my commit https://cbea.ms/git-commit/
    here is an example commit
  • Ensure drone builds are green especially tests
  • I will squash the commits before merging

parse: d => d && dateFormater.format(new Date(d))
parse: (d, req) => {
const isSponsor = req.sessionModel.get('who-is-completing') === 'sponsor';
return !isSponsor && d ? dateFormater.format(new Date(d)) : null;
Copy link
Contributor

Choose a reason for hiding this comment

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

Even if we select the sponsor, we still present this page and users have to enter date of application. Any specific requirement to hide this ?

field: 'cancel-application',
parse: (value, req) => {
const isSponsor = req.sessionModel.get('who-is-completing') === 'sponsor';
return !isSponsor ? value : null;
Copy link
Contributor

@vivekkumar-ho vivekkumar-ho Nov 25, 2024

Choose a reason for hiding this comment

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

I don't think we need this change. If cancel application options are not presented, these should not be visible by default. Please validate this on the existing branch testing URL for ROD-122

@vivekkumar-ho
Copy link
Contributor

vivekkumar-ho commented Nov 25, 2024

Also, since other changes from ROD-122 are not available in this branch, we cannot validate the changes using this branch URL. If we need any changes, then they should be made in the existing PR - #60

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