Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/components/display/modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function Modal({
}

// Check if Role exists
if (!roleOptions[role]) {
if (!roleOptions.includes(role)) {
console.error(
`Invalid role option for dialog ${role}. Must be one of: 'dialog','alertdialog'`)
console.warn(
Expand All @@ -54,8 +54,8 @@ function Modal({
onClose={onClose}
static= {isStatic}
autoFocus={autoFocus}
dialogTransition={dialogTransition}
unount={unmount}
transition={dialogTransition}
unmount={unmount}
role={role}
className={gwMerge("gw-relative", "gw-z-[200]", className)}
>
Expand Down