Hide metadata on unconfirmed order
This commit is contained in:
parent
4f3fea10ff
commit
beee789294
1 changed files with 11 additions and 9 deletions
|
@ -262,6 +262,7 @@ const OrderDetailsPage: React.FC<OrderDetailsPageProps> = props => {
|
|||
</React.Fragment>
|
||||
))}
|
||||
{order?.status !== OrderStatus.UNCONFIRMED && (
|
||||
<>
|
||||
<OrderPayment
|
||||
order={order}
|
||||
onCapture={onPaymentCapture}
|
||||
|
@ -269,9 +270,10 @@ const OrderDetailsPage: React.FC<OrderDetailsPageProps> = props => {
|
|||
onRefund={onPaymentRefund}
|
||||
onVoid={onPaymentVoid}
|
||||
/>
|
||||
)}
|
||||
<CardSpacer />
|
||||
<Metadata data={data} onChange={changeMetadata} />
|
||||
</>
|
||||
)}
|
||||
<OrderHistory
|
||||
history={order?.events}
|
||||
orderCurrency={order?.total?.gross.currency}
|
||||
|
|
Loading…
Reference in a new issue