Last active
October 14, 2020 14:21
-
-
Save vansika/c58ac02bdf4390adc0e609977a66beb3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
className={`next ${ | |
(typeof listens[listens.length - 1].listened_at !== "undefined" && listens[listens.length - 1].listened_at <= oldestListenTs) | |
? "disabled" | |
: "" | |
}`} | |
static/js/src/RecentListens.tsx:892:92 - error TS2532: Object is possibly 'undefined'. | |
892 (typeof listens[listens.length - 1].listened_at !== "undefined" && listens[listens.length - 1].listened_at <= oldestListenTs) | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment