Skip to content

Commit 1726f58

Browse files
correi-ffrancoisno
authored andcommitted
fixes #112 Card without file not displayed on pre-release
1 parent e62f57e commit 1726f58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/useTock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function mapCard(card: any): Card {
7373
title: card.title,
7474
subTitle: card.subTitle,
7575
imageUrl: card.file?.url,
76-
imageAlternative: card?.file.description ?? card.title,
76+
imageAlternative: card?.file?.description ?? card.title,
7777
buttons: card.buttons.map((button: any) => mapButton(button)),
7878
type: MessageType.card,
7979
} as Card;

0 commit comments

Comments
 (0)