diff --git a/storybook/src/components/Dialog/Dialog.stories.tsx b/storybook/src/components/Dialog/Dialog.stories.tsx index c4086a376c..1c0d8e9c24 100644 --- a/storybook/src/components/Dialog/Dialog.stories.tsx +++ b/storybook/src/components/Dialog/Dialog.stories.tsx @@ -7,7 +7,9 @@ import { Button, Dialog, Heading, Paragraph } from '@amsterdam/design-system-rea import { Meta, StoryObj } from '@storybook/react' import { MouseEvent } from 'react' -const closeDialog = (event: MouseEvent) => event.currentTarget.closest('dialog')?.close() +const closeDialog = (event: MouseEvent) => { + return event.currentTarget.closest('dialog')?.close() +} const meta = { title: 'Components/Containers/Dialog',