From b38d15e1ee7b285280955600bf2e696ec8ef6043 Mon Sep 17 00:00:00 2001 From: tniezg Date: Tue, 17 Aug 2021 18:42:57 +0200 Subject: [PATCH] Add __typename to variant options to allow adding the selected variant to the cart --- framework/spree/utils/expandOptions.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/spree/utils/expandOptions.ts b/framework/spree/utils/expandOptions.ts index 54b77dba7..0ea5a28a2 100644 --- a/framework/spree/utils/expandOptions.ts +++ b/framework/spree/utils/expandOptions.ts @@ -42,6 +42,7 @@ const expandOptions = ( } option = { + __typename: 'MultipleChoiceOption', id: spreeOptionType.id, displayName: spreeOptionType.attributes.presentation, values: [],