Feature/add twitter bot for fear and greed index (#702)

* Add twitter bot for fear and greed index

* Update changelog
This commit is contained in:
Thomas Kaul
2022-02-16 21:17:11 +01:00
committed by GitHub
parent 52e4504de9
commit 280030ae7f
13 changed files with 112 additions and 11 deletions

View File

@@ -24,12 +24,9 @@ export class FearAndGreedIndexComponent implements OnChanges, OnInit {
public ngOnInit() {}
public ngOnChanges() {
this.fearAndGreedIndexEmoji = resolveFearAndGreedIndex(
this.fearAndGreedIndex
).emoji;
const { emoji, text } = resolveFearAndGreedIndex(this.fearAndGreedIndex);
this.fearAndGreedIndexText = resolveFearAndGreedIndex(
this.fearAndGreedIndex
).text;
this.fearAndGreedIndexEmoji = emoji;
this.fearAndGreedIndexText = text;
}
}