Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Remove unnecesary brace

Krzysztof Bialoglowicz4a5b7f05d0c2
diff --git a/saleor/static/dashboard-next/discounts/views/VoucherDetails.tsx b/saleor/static/dashboard-next/discounts/views/VoucherDetails.tsx
index c80d21d27f..925fdb1a00 100644
--- a/saleor/static/dashboard-next/discounts/views/VoucherDetails.tsx
+++ b/saleor/static/dashboard-next/discounts/views/VoucherDetails.tsx
@@ -310,7 +310,7 @@ export const VoucherDetails: React.StatelessComponent<VoucherDetailsProps> = ({
activeTab={params.activeTab}
onBack={() => navigate(voucherListUrl())}
onTabClick={changeTab}
- onSubmit={formData => {
+ onSubmit={formData =>
voucherUpdate({
variables: {
id,
@@ -352,8 +352,8 @@ export const VoucherDetails: React.StatelessComponent<VoucherDetailsProps> = ({
)
}
}
- });
- }}
+ })
+ }
onRemove={() => openModal("remove")}
saveButtonBarState={formTransitionState}
categoryListToolbar={