Skip to content

Instantly share code, notes, and snippets.

@vansika
Last active October 14, 2020 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vansika/c58ac02bdf4390adc0e609977a66beb3 to your computer and use it in GitHub Desktop.
Save vansika/c58ac02bdf4390adc0e609977a66beb3 to your computer and use it in GitHub Desktop.
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