fix: eslint --fix

This commit is contained in:
lyx 2024-03-11 19:25:50 +08:00
parent d2ad2920d1
commit 54d0942dae

View File

@ -2,7 +2,7 @@ import React from 'react';
import { Document, Page, Text, View, StyleSheet, renderToStream } from '@hera/plugin-core'; import { Document, Page, Text, View, StyleSheet, renderToStream } from '@hera/plugin-core';
import { formatCurrency, formatQuantity } from '../../utils/currencyUtils'; import { formatCurrency, formatQuantity } from '../../utils/currencyUtils';
import { converDate } from '../../utils/daysUtils'; import { converDate } from '../../utils/daysUtils';
import { Waybill } from '../interfaces/waybill'; import { Waybill } from '../../interfaces/waybill';
const boldFont = { const boldFont = {
fontFamily: 'source-han-sans', fontFamily: 'source-han-sans',
@ -291,7 +291,7 @@ const PreviewDocument = ({ waybill }: { waybill: Waybill }) => {
<Text> <Text>
<Text style={styles.mainSize}> <Text style={styles.mainSize}>
{formatQuantity(waybill.additional_cost, 2) == '0.00' {formatQuantity(waybill.additional_cost, 2) === '0.00'
? '0' ? '0'
: formatQuantity(waybill.additional_cost, 2)} : formatQuantity(waybill.additional_cost, 2)}