Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

MM-36126 - prevent purchase modal Object.keys invocation with null value #8188

Merged
merged 1 commit into from
Jun 1, 2021
Merged
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
2 changes: 1 addition & 1 deletion components/purchase_modal/purchase_modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ export default class PurchaseModal extends React.PureComponent<Props, State> {
</div>
<div className='RHS'>
<div className='price-container'>
{this.props.isFreeTrial && Object.keys(this.props.products!).length > 1 &&
{(this.props.isFreeTrial && this.props.products && Object.keys(this.props.products).length > 1) &&
<div className='select-plan'>
<div className='title'>
<FormattedMessage
Expand Down