Fix placeholder bug and improve code quality

This commit is contained in:
kevinpauer
2022-04-06 17:04:38 +02:00
parent b2be8745a6
commit e592a0805a
3 changed files with 6 additions and 5 deletions

View File

@@ -28,7 +28,8 @@ export class HelperService {
return shares;
}
formatKeywordsData(keywords: Keyword[]) {
formatKeywordsData(): Keyword[] {
var keywords: Keyword[] = [];
this.botService.getKeywords().subscribe((result) => {
var data = JSON.parse(result);
for (let i = 0; i < data.data.length; i++) {