Skip to content

Commit

Permalink
Update topic name description generation for topic request form
Browse files Browse the repository at this point in the history
Signed-off-by: Mirjam Aulbach <[email protected]>
  • Loading branch information
programmiri committed Aug 22, 2024
1 parent 408fdd5 commit 3642ad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coral/src/app/features/topics/request/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ function generateTopicNameDescription(
);
}
} else {
if (topicPrefix && topicPrefix.length > 0) {
if (topicPrefix && topicPrefix.length > 0 && topicPrefix[0].length > 0) {
desc.unshift(
`Prefix name with: ${generateNamePatternString(topicPrefix)}.`
);
}

if (topicSuffix && topicSuffix.length > 0) {
if (topicSuffix && topicSuffix.length > 0 && topicSuffix[0].length > 0) {
desc.unshift(
`Suffix name with: ${generateNamePatternString(topicSuffix)}.`
);
Expand Down

0 comments on commit 3642ad0

Please sign in to comment.