Feature/prettify scraper symbol in chart (#448)
* Prettify scraper symbol in chart * Update changelogpull/449/head
parent
9933967e42
commit
54bbc8446b
@ -1,11 +1,11 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import { ghostfolioScraperApiSymbolPrefix } from '@ghostfolio/common/config';
|
||||
import { prettifySymbol } from '@ghostfolio/common/helper';
|
||||
|
||||
@Pipe({ name: 'gfSymbol' })
|
||||
export class SymbolPipe implements PipeTransform {
|
||||
public constructor() {}
|
||||
|
||||
public transform(aSymbol: string): string {
|
||||
return aSymbol?.replace(ghostfolioScraperApiSymbolPrefix, '');
|
||||
public transform(aSymbol: string) {
|
||||
return prettifySymbol(aSymbol);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue