Skip to content

Limit other payment type field to 8 char#1189

Merged
himaniraghav3 merged 1 commit intodevfrom
PM-1616
Aug 19, 2025
Merged

Limit other payment type field to 8 char#1189
himaniraghav3 merged 1 commit intodevfrom
PM-1616

Conversation

@himaniraghav3
Copy link
Collaborator

Related JIRA Ticket:

https://topcoder.atlassian.net/browse/PM-1616

What's in this PR?

Adds no wrap on payment field and limits the characters to 8

<div className={styles.payment}>
{copilotOpportunity.paymentType === 'standard'
? copilotOpportunity.paymentType : copilotOpportunity.otherPaymentType}
? copilotOpportunity.paymentType : copilotOpportunity.otherPaymentType.slice(0, 8)}

Choose a reason for hiding this comment

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

Consider handling cases where otherPaymentType might be null or undefined to avoid potential runtime errors when calling slice(0, 8).

@himaniraghav3 himaniraghav3 merged commit 6f191d8 into dev Aug 19, 2025
3 checks passed
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