diff --git a/packages/lib/storybook/helpers/checkout-handlers.ts b/packages/lib/storybook/helpers/checkout-handlers.ts index f59bc47127..e161873c9c 100644 --- a/packages/lib/storybook/helpers/checkout-handlers.ts +++ b/packages/lib/storybook/helpers/checkout-handlers.ts @@ -77,8 +77,8 @@ export function handleChange(state: any, _component: UIElement) { console.groupCollapsed(`onChange - ${state.data.paymentMethod.type}`); console.log('isValid', state.isValid); console.log('data', state.data); - // @ts-ignore Logging internal data for testing purposes - console.log('node', component._node); + // @ts-ignore Logging internal prop + console.log('node', _component._node); console.log('state', state); console.groupEnd(); } diff --git a/packages/lib/storybook/stories/giftcards/GiftcardExample.tsx b/packages/lib/storybook/stories/giftcards/GiftcardExample.tsx index b799f49bf7..65be964ab8 100644 --- a/packages/lib/storybook/stories/giftcards/GiftcardExample.tsx +++ b/packages/lib/storybook/stories/giftcards/GiftcardExample.tsx @@ -29,15 +29,13 @@ export const GiftcardExample = ({ contextArgs }: GiftcardExampleProps) => { }); const onOrderUpdated = () => { - const card = new Card({ - core: checkout.current, + const card = new Card(checkout.current, { _disableClickToPay: true }); setElement(card); }; - const giftcardElement = new Giftcard({ - core: checkout.current, + const giftcardElement = new Giftcard(checkout.current, { ...contextArgs.componentConfiguration, onOrderUpdated: onOrderUpdated });