Programming Phoenix LiveView: two code listings are identical (p. 56)

It seems like description that goes after the listings describe code that is supposed to be in the second, duplicate “copy” of the code.