|
@ -72,14 +72,19 @@ export class AdminMarketDataService { |
|
|
public hasPermissionToDeleteAssetProfile({ |
|
|
public hasPermissionToDeleteAssetProfile({ |
|
|
activitiesCount, |
|
|
activitiesCount, |
|
|
isBenchmark, |
|
|
isBenchmark, |
|
|
symbol |
|
|
symbol, |
|
|
}: Pick<AdminMarketDataItem, 'activitiesCount' | 'isBenchmark' | 'symbol'>) { |
|
|
watchedByCount |
|
|
|
|
|
}: Pick< |
|
|
|
|
|
AdminMarketDataItem, |
|
|
|
|
|
'activitiesCount' | 'isBenchmark' | 'symbol' | 'watchedByCount' |
|
|
|
|
|
>) { |
|
|
return ( |
|
|
return ( |
|
|
activitiesCount === 0 && |
|
|
activitiesCount === 0 && |
|
|
!isBenchmark && |
|
|
!isBenchmark && |
|
|
!isDerivedCurrency(getCurrencyFromSymbol(symbol)) && |
|
|
!isDerivedCurrency(getCurrencyFromSymbol(symbol)) && |
|
|
!isRootCurrency(getCurrencyFromSymbol(symbol)) && |
|
|
!isRootCurrency(getCurrencyFromSymbol(symbol)) && |
|
|
!symbol.startsWith(ghostfolioScraperApiSymbolPrefix) |
|
|
!symbol.startsWith(ghostfolioScraperApiSymbolPrefix) && |
|
|
|
|
|
watchedByCount === 0 |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|