Try fix comparaison type
This commit is contained in:
parent
d5be14fa65
commit
eb87c0d61d
2 changed files with 3 additions and 2 deletions
|
@ -9,7 +9,7 @@ function TimelineCard({ children } : TimelineCardProps) {
|
|||
let titles : ReactNode[] = []
|
||||
let childrens : ReactNode[] = []
|
||||
Children.forEach(children, (c) => {
|
||||
if (c.type.name === "TimelineCardSummary") {
|
||||
if (c.type === TimelineCardSummary) {
|
||||
titles.push(c)
|
||||
} else {
|
||||
childrens.push(c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue