Skip to content

Commit 27be0ae

Browse files
committed
Fix optional image
1 parent 9a11953 commit 27be0ae

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,15 @@ const receiptCardContentPropsSchema = pipe(
5353
array(
5454
pipe(
5555
object({
56-
image: pipe(
57-
object({
58-
alt: string(),
59-
tap: optional(directLineCardActionSchema),
60-
url: string()
61-
}),
62-
readonly()
56+
image: optional(
57+
pipe(
58+
object({
59+
alt: string(),
60+
tap: optional(directLineCardActionSchema),
61+
url: string()
62+
}),
63+
readonly()
64+
)
6365
),
6466
price: string(),
6567
quantity: optional(string()),

0 commit comments

Comments
 (0)