mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix 14802 - Prevent children error in page container (#14809)
This commit is contained in:
parent
b68aee1bef
commit
6ffd0ce063
@ -74,9 +74,7 @@ export default class PageContainer extends PureComponent {
|
||||
children = children.filter(Boolean);
|
||||
const { activeTabIndex } = this.state;
|
||||
|
||||
return children[activeTabIndex]
|
||||
? children[activeTabIndex].props.children
|
||||
: children.props.children;
|
||||
return (children[activeTabIndex] || children[0]).props.children;
|
||||
}
|
||||
|
||||
renderContent() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user