Skip to content

Conversation

peterdrobinson
Copy link
Contributor

Original PR was #57

@platops-pr-bot
Copy link

private lazy val otherRadioEmptyError = "landlord.radio.other.empty.error"
private lazy val otherRadioTooLongError = "landlord.radio.other.tooLong.error"
private lazy val landlordRadioEmptyError = "landlord.radio.other.empty.error"
private lazy val landlordRadioTooLongError = "landlord.radio.other.tooLong.error"
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you mean landloardRelationshipTooLongError?


private def isOtherTextEmpty[A]: Constraint[A] =
Constraint((input: A) =>
val rentBasedOnForm = input.asInstanceOf[LandlordForm]
Copy link
Contributor

Choose a reason for hiding this comment

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

I know it wasn't you. Can you please change from rentBasedOnForm to landlordForm?

Some((landlordForm.landlordName, landlordForm.landLordType, landlordForm.landlordOther))
Some((landlordForm.landlordName, landlordForm.hasRelationship, landlordForm.landlordRelationship))

private def isOtherTextEmpty[A]: Constraint[A] =
Copy link
Contributor

Choose a reason for hiding this comment

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

isLandloardRelationshipTextEmpty?

Valid
)

private def otherTextMaxLength[A]: Constraint[A] =
Copy link
Contributor

Choose a reason for hiding this comment

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

landLordRelationshipMaxLength?

conf/messages Outdated
landlord.name.empty.tooLong.error = Landlord''s full name must be 50 characters or less
landlord.radio.empty.error = Select what your relationship with the landlord is
landlord.radio.other.empty.error = Tell us what your relationship with the landlord is
landlord.radio.other.tooLong.error = Maximum character allowed is 250
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please change other to something else? As other doesn't exist any more.


private def otherTextMaxLength[A]: Constraint[A] =
Constraint((input: A) =>
val rentBasedOnForm = input.asInstanceOf[LandlordForm]
Copy link
Contributor

Choose a reason for hiding this comment

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

I know it wasn't you. Can you please change from rentBasedOnForm to landlordForm?

@peterdrobinson peterdrobinson merged commit 53446c1 into main Oct 1, 2025
1 check passed
@peterdrobinson peterdrobinson deleted the NGR-1091-A branch October 1, 2025 12:43
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.

3 participants