You are correct! Check out the corrected code here Programming Phoenix LiveView: Session Data B6.0 (p. 56)