mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-05-04 10:43:49 +01:00
Fix rare exception case from undefined value
This commit is contained in:
parent
ee6dac00d5
commit
7f25369e15
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ import { calculateTimeLeftString } from './pollTime';
|
||||||
export const renderCard = (
|
export const renderCard = (
|
||||||
card: GraphQLTwitterStatus['card']
|
card: GraphQLTwitterStatus['card']
|
||||||
): { poll?: APIPoll; external_media?: APIExternalMedia } => {
|
): { poll?: APIPoll; external_media?: APIExternalMedia } => {
|
||||||
if (!Array.isArray(card.legacy.binding_values)) {
|
if (!Array.isArray(card.legacy?.binding_values)) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue