Fix rare exception case from undefined value

This commit is contained in:
dangered wolf 2023-12-08 22:25:56 -05:00
parent ee6dac00d5
commit 7f25369e15
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58

View file

@ -4,7 +4,7 @@ import { calculateTimeLeftString } from './pollTime';
export const renderCard = (
card: GraphQLTwitterStatus['card']
): { poll?: APIPoll; external_media?: APIExternalMedia } => {
if (!Array.isArray(card.legacy.binding_values)) {
if (!Array.isArray(card.legacy?.binding_values)) {
return {};
}