Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kachourihassen committed Sep 28, 2023
1 parent a73197f commit db31f9f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,9 @@ export class CampaignDetailsContainerComponent implements OnInit {
}
limitDescription(description: string | undefined): string {
if (description) {
// Ensure the description is between 55 and 200 characters
return description.length <= 200 ? description : description.substring(0, 200);
}
return ''; // Handle cases where description is undefined
return '';
}
ngOnDestroy(): void {
this.isDestroyed.next('');
Expand Down

0 comments on commit db31f9f

Please sign in to comment.