Skip to content

Commit 86eb547

Browse files
Merge pull request #1192 from topcoder-platform/PM-1616
PM-1616 Prevent undefined error
2 parents 6f191d8 + f2f20fc commit 86eb547

File tree

1 file changed

+1
-1
lines changed
  • src/apps/copilots/src/pages/copilot-request-form

1 file changed

+1
-1
lines changed

src/apps/copilots/src/pages/copilot-request-form/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ const CopilotRequestForm: FC<{}> = () => {
277277
message: 'Field cannot be left empty',
278278
},
279279
{
280-
condition: formValues.otherPaymentType.trim().length > 8,
280+
condition: formValues.otherPaymentType && formValues.otherPaymentType.trim().length > 8,
281281
key: 'otherPaymentType',
282282
message: 'Field only allows 8 characters',
283283
},

0 commit comments

Comments
 (0)