diff --git a/packages/snaps-simulation/src/interface.ts b/packages/snaps-simulation/src/interface.ts index 6cec7621e6..6933857f83 100644 --- a/packages/snaps-simulation/src/interface.ts +++ b/packages/snaps-simulation/src/interface.ts @@ -235,12 +235,10 @@ function getFormElement(form: FormElement, name: string) { * @param element - The JSX element. * @returns An object containing the element and optional form. */ -function getElementWithOptionalForm(element: NamedJSXElement): - | { - element: NamedJSXElement; - form?: string; - } - | undefined { +function getElementWithOptionalForm(element: NamedJSXElement): { + element: NamedJSXElement; + form?: string; +} { if (element.type !== 'Button' || !element.props.form) { return { element }; }