We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c2a32a commit 1992252Copy full SHA for 1992252
src/variables/utils.ts
@@ -394,13 +394,13 @@ export const processTaxRecurrences = (
394
395
export const getTaxRate = (
396
source: any,
397
- i18n: any,
+ i18n: I18n,
398
index = 0,
399
emptyTaxPlaceholder = i18n.t('table_order.no_tax', '(no tax)'),
400
) => {
401
const tax = source.taxes?.[index]?.tax;
402
403
- if (tax !== undefined) {
+ if (typeof tax === 'object' && tax !== null) {
404
const rate = tax.rate;
405
const description = tax.description;
406
0 commit comments