There was an error while loading. Please reload this page.
1 parent fb3167e commit 93bc89fCopy full SHA for 93bc89f
1 file changed
react/utils/helpers.ts
@@ -17,9 +17,9 @@ export const initQuoteFromOrderForm = (orderForm: any) => {
17
} else {
18
quoteItems.push({
19
...item,
20
- listPrice: item.listPrice * 100,
21
- price: item.price * 100,
22
- sellingPrice: item.sellingPrice * 100,
+ listPrice: typeof item.listPrice === 'number' ? item.listPrice * 100 : 0,
+ price: typeof item.price === 'number' ? item.price * 100 : 0,
+ sellingPrice: typeof item.sellingPrice === 'number' ? item.sellingPrice * 100 : 0,
23
})
24
}
25
0 commit comments