On page 221, when referencing a function to pass in a list of products:
To make this work, we need to pass the list of products to the RatingLive.Index.products/1 function…
the name of the function is wrong:
RatingLive.Index.products/1
instead of
RatingLive.Index.product_list/1
as defined several lines before in the survey_live.html.heex
template:
<RatingLive.Index.product_list products={@products} ...
The same wrong reference is used on page 222:
Now that we’re rendering our RatingLive.Index.products/1 function component
…