Fix empty label on button (#1504) (#1514)

* Fix empty label on button (#1504)

* Trigger deployment
This commit is contained in:
Michał Droń 2021-10-19 12:04:53 +02:00 committed by GitHub
parent 39dabc8ea2
commit 13c63283a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -181,7 +181,7 @@ const OrderDetailsPage: React.FC<OrderDetailsPageProps> = props => {
};
const saveLabel = isOrderUnconfirmed
? intl.formatMessage(messages.confirmOrder)
? { confirm: intl.formatMessage(messages.confirmOrder) }
: undefined;
const allowSave = (hasChanged: boolean) => {
@ -325,7 +325,7 @@ const OrderDetailsPage: React.FC<OrderDetailsPageProps> = props => {
</div>
</Grid>
<Savebar
labels={{ confirm: saveLabel }}
labels={saveLabel}
onCancel={onBack}
onSubmit={submit}
state={saveButtonBarState}