Skip to content

Commit 2a15009

Browse files
committed
Fix TypeScript default
1 parent 01a076f commit 2a15009

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/bundle/src/adaptiveCards/Attachment/ReceiptCardContent.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,14 @@ function ReceiptCardContent(props: ReceiptCardContentProps) {
139139
}
140140

141141
items &&
142-
items.map(({ image: { alt, tap: imageTap, url } = {}, price, quantity, subtitle, tap, text, title }) => {
142+
items.map(({ image, price, quantity, subtitle, tap, text, title }) => {
143143
let itemColumns;
144144

145-
if (url) {
145+
if (image?.url) {
146146
const [itemImageColumn, ...columns] = builder.addColumnSet([15, 75, 10]);
147147

148148
itemColumns = columns;
149-
builder.addImage(url, itemImageColumn, imageTap as DirectLineCardAction, alt);
149+
builder.addImage(image?.url, itemImageColumn, image?.tap as DirectLineCardAction, image?.alt);
150150
} else {
151151
itemColumns = builder.addColumnSet([75, 25], undefined, tap && (tap as DirectLineCardAction));
152152
}

0 commit comments

Comments
 (0)