Skip to content
Snippets Groups Projects
Unverified Commit 054a60bf authored by Tom Robinson's avatar Tom Robinson
Browse files

Fix certain modals (e.x. About modal)

parent ed65a201
Branches
Tags
No related merge requests found
......@@ -16,7 +16,7 @@ export const MODAL_CHILD_CONTEXT_TYPES = {
};
function getModalContent(props) {
if (React.Children.count(props.children).length > 1 ||
if (React.Children.count(props.children) > 1 ||
props.title != null || props.footer != null
) {
return <ModalContent {..._.omit(props, "className", "style")} />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment