Skip to content

Commit a293290

Browse files
committed
Fix test
1 parent a8a11fe commit a293290

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

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

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,20 @@ import { hooks } from 'botframework-webchat-component';
44
import { parseProps } from 'botframework-webchat-component/internal';
55
import { type DirectLineCardAction } from 'botframework-webchat-core';
66
import React, { memo, useMemo } from 'react';
7-
import { any, array, boolean, looseObject, object, optional, pipe, readonly, string, type InferInput } from 'valibot';
7+
import {
8+
any,
9+
array,
10+
boolean,
11+
looseObject,
12+
number,
13+
object,
14+
optional,
15+
pipe,
16+
readonly,
17+
string,
18+
union,
19+
type InferInput
20+
} from 'valibot';
821

922
import useStyleOptions from '../../hooks/useStyleOptions';
1023
import useAdaptiveCardsPackage from '../hooks/useAdaptiveCardsPackage';
@@ -64,7 +77,7 @@ const receiptCardContentPropsSchema = pipe(
6477
)
6578
),
6679
price: string(),
67-
quantity: optional(string()),
80+
quantity: optional(union([number(), string()])), // TODO: Should be string only.
6881
subtitle: optional(string()),
6982
tap: optional(directLineCardActionSchema),
7083
text: optional(string()),

0 commit comments

Comments
 (0)