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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user