fix: don't crash when price doesn't exist (sdk bug)
fixes https://github.com/lbryio/lbry-desktop/issues/3205
This commit is contained in:
parent
029576f786
commit
4e184ccff0
1 changed files with 1 additions and 2 deletions
|
@ -39,8 +39,7 @@ class FilePrice extends React.PureComponent<Props> {
|
|||
|
||||
render() {
|
||||
const { costInfo, showFullPrice, badge, inheritStyle, showLBC, hideFree } = this.props;
|
||||
|
||||
if (costInfo && !costInfo.cost && hideFree) {
|
||||
if (costInfo && (!costInfo.cost || (!costInfo.cost && hideFree))) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue