fix: eslint --fix
This commit is contained in:
parent
d2ad2920d1
commit
54d0942dae
@ -2,7 +2,7 @@ import React from 'react';
|
||||
import { Document, Page, Text, View, StyleSheet, renderToStream } from '@hera/plugin-core';
|
||||
import { formatCurrency, formatQuantity } from '../../utils/currencyUtils';
|
||||
import { converDate } from '../../utils/daysUtils';
|
||||
import { Waybill } from '../interfaces/waybill';
|
||||
import { Waybill } from '../../interfaces/waybill';
|
||||
|
||||
const boldFont = {
|
||||
fontFamily: 'source-han-sans',
|
||||
@ -291,7 +291,7 @@ const PreviewDocument = ({ waybill }: { waybill: Waybill }) => {
|
||||
<Text>
|
||||
附加价格
|
||||
<Text style={styles.mainSize}>
|
||||
{formatQuantity(waybill.additional_cost, 2) == '0.00'
|
||||
{formatQuantity(waybill.additional_cost, 2) === '0.00'
|
||||
? '0'
|
||||
: formatQuantity(waybill.additional_cost, 2)}
|
||||
元
|
||||
|
Loading…
Reference in New Issue
Block a user