Skip to content

Commit 5fa4d77

Browse files
committed
review fix
1 parent 1c71c45 commit 5fa4d77

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/giftCards/GiftCardUpdate/providers/GiftCardUpdateFormProvider/GiftCardUpdateFormProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const GiftCardUpdateFormProvider = ({ children }: GiftCardUpdateFormProviderProp
103103
});
104104
const submit = async ({ tags, expiryDate }: GiftCardUpdateFormData) => {
105105
if (!giftCard) {
106-
return [];
106+
return undefined;
107107
}
108108

109109
const result = await updateGiftCard({

src/giftCards/components/GiftCardTagInput/GiftCardTagInput.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { GiftCardErrorCode } from "@dashboard/graphql";
12
import type { Meta, StoryObj } from "@storybook/react-vite";
23
import { fn } from "storybook/test";
34

@@ -29,7 +30,7 @@ export const WithValues: Story = {
2930

3031
export const WithError: Story = {
3132
args: {
32-
error: { code: "INVALID" as never, field: "tags" },
33+
error: { code: GiftCardErrorCode.INVALID, field: "tags" },
3334
},
3435
};
3536

0 commit comments

Comments
 (0)