Fix fulfill non shippable gift cards option not being used in update mutation (#1465)

This commit is contained in:
Magdalena Markusik 2021-10-04 14:51:23 +02:00 committed by GitHub
parent bb752d3bad
commit 547f5f7c3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,12 +24,14 @@ export const OrderSettings: React.FC = () => {
const handleSubmit = async ({ const handleSubmit = async ({
automaticallyConfirmAllNewOrders, automaticallyConfirmAllNewOrders,
automaticallyFulfillNonShippableGiftCard,
fulfillmentAutoApprove, fulfillmentAutoApprove,
fulfillmentAllowUnpaid fulfillmentAllowUnpaid
}: OrderSettingsFormData) => { }: OrderSettingsFormData) => {
const result = await orderSettingsUpdate({ const result = await orderSettingsUpdate({
variables: { variables: {
orderSettingsInput: { orderSettingsInput: {
automaticallyFulfillNonShippableGiftCard,
automaticallyConfirmAllNewOrders automaticallyConfirmAllNewOrders
}, },
shopSettingsInput: { shopSettingsInput: {