Need Help With The Exercise Tracker Project

Tell us what’s happening:
I am unable to pass the 4th test for some reason, I have a piece of code to handle a case where the date section is empty but the test still fails when I run it.

Your code so far
Here is a link to the code: https://glitch.com/edit/#!/roan-pollen-cuckoo

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36.

Challenge: Exercise Tracker API

Link to the challenge: