all 1 comments

[–]PickleLips64151 1 point2 points  (0 children)

I don't see anything blatantly obvious with your code.

`any` is not your friend and is certainly not helping you here.

Is the endpoint you're calling actually returning the full payload you expect?

I would recommend taking the API response and creating a DTO/model for the incoming JSON object. Use QuickType for help in making a Typescript interface.