Skip to content

Commit 3c01fe0

Browse files
committed
remove unnecessary guard
1 parent fd933d3 commit 3c01fe0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/Term/index.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ export default function Term({ type = null, children }) {
1919
if (typeof mdx === "string") return mdx;
2020
else return unwrap(mdx.props.children);
2121
}
22-
if (type === null || type === undefined)
23-
type = autoType.get(unwrap(children));
22+
if (type === null) type = autoType.get(unwrapNode(children));
2423
if (!type)
2524
throw new Error(
2625
`Problem: Term ${children.textContent} is not defined in AutoType.

0 commit comments

Comments
 (0)