From 1a64ca7409bc695653bba819900fbc4fc8f2da54 Mon Sep 17 00:00:00 2001 From: Sofia Papacharalampous Date: Wed, 8 May 2024 16:07:41 +0300 Subject: [PATCH] clean up --- .../src/common/formatting/pipes/app-title-case-format.pipe.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/dmp-frontend/src/common/formatting/pipes/app-title-case-format.pipe.ts b/dmp-frontend/src/common/formatting/pipes/app-title-case-format.pipe.ts index d6abe5583..c20b86093 100644 --- a/dmp-frontend/src/common/formatting/pipes/app-title-case-format.pipe.ts +++ b/dmp-frontend/src/common/formatting/pipes/app-title-case-format.pipe.ts @@ -7,9 +7,6 @@ import { Pipe, PipeTransform } from "@angular/core"; export class AppTitleCaseFormatPipe implements PipeTransform { transform(value: any, ...args: any[]) { - let foo1 = value.split('-'); - let foo2 = foo1.map(element => element.charAt(0).toUpperCase() + element.slice(1)) - let foo3 = foo2.join(' '); return value.split('-').map(element => element.charAt(0).toUpperCase() + element.slice(1)).join(' '); } } \ No newline at end of file