The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Rider Sargent (1) [Avatar] Offline
On page 76 there is the following code snippet (just after "Let’s add this to the end of our update function"):

SurpriseMe index ->
    { model | selectedUrl = "2.jpeg" }
SetSize size ->
    { model | chosenSize = size }

I believe the index value for SurpriseMe shouldn't be there. At this point SurpriseMe is defined in Msg as not having a value and in both the previous listing (Listing 3.6, on the previous page) and in the next listing (at the top of page 80) it does not have a value.

Apologies if this has already been addressed (I searched, but couldn't find it).