Some songs which have no events / obstacles / notes omit the corresponding field instead of sending [], so sanitize that
On first run the favorites will be undefined, resulting in a call to search with a null payload.results
The song accuracy displays as NaN% if the song has no notes (rare but present in some meme tracks); treat this like 100%, similar to the initial score percent.
[]
, so sanitize thatsearch
with a nullpayload.results
NaN%
if the song has no notes (rare but present in some meme tracks); treat this like 100%, similar to the initial score percent.