Great work on finding the error. Those typos can be tricky, for sure! Also, for future, if you want a screenshot of ALL your code all at once, you can type...
export cartname.lua.png
...and it will make a PNG of all of your cart's code. (Putting the .lua.png at the end is important!) It's actually kind of cool to see it that way. :) Looks like this: