fix orders fixture error

This commit is contained in:
AlicjaSzu 2020-05-19 11:34:01 +02:00
parent ea3b65bd8c
commit aefb339861
2 changed files with 3 additions and 3 deletions

View file

@ -159,7 +159,7 @@ const OrderPayment: React.FC<OrderPaymentProps> = props => {
)}
</td>
</tr>
{maybe(() => order && order.discount.amount !== 0) ? (
{maybe(() => order && order.discount.amount !== 0) && (
<tr>
<td>
<FormattedMessage
@ -172,7 +172,7 @@ const OrderPayment: React.FC<OrderPaymentProps> = props => {
-<Money money={order.discount} />
</td>
</tr>
) : null}
)}
<tr className={classes.totalRow}>
<td>
<FormattedMessage

View file

@ -1042,9 +1042,9 @@ export const draftOrder = (placeholder: string): OrderDetails_order => ({
canFinalize: true,
created: "2018-09-20T23:23:39.811428+00:00",
customerNote: "Lorem ipsum dolor sit",
discount: null,
events: [],
fulfillments: [],
discount: null,
id: "T3JkZXI6MjQ=",
lines: [
{