function suddenly not working

idk why byt line 7 just stopped working
Continue to help post