Programming Phoenix LiveView B9.0: Example code uses undefined attribute `product` when calling `RatingLive.Show.stars/1` (p. 210) (PDF)

On page 210 of the PDF, the example code shows the PentoWeb.RatingLive.Show.stars/1 function component being called with a products attribute. However, this function does not define a product attribute. Using the code given on page 210 produces the following error via ElixirLS:

undefined attribute "product" for component PentoWeb.RatingLive.Show.stars/1 (Elixir)

Hmm I don’t see that in the latest released version of the book, it’s possible we’ve already updated it. If you see that in the latest version of the release book, please do let me know. Otherwise, we are releasing a new version soon and you should see that corrected.