Fix "channel levels" being applied to all MarkdownPreview usages.

`stakedLevel` is only provided when needed (comments, etc.), so when it's null, resume normal operation.
This commit is contained in:
infinite-persistence 2021-04-09 01:10:54 +08:00 committed by Sean Yesmunt
parent 3bab4feeca
commit 20a28865fe

View file

@ -131,7 +131,7 @@ const REPLACE_REGEX = /(<iframe\s+src=["'])(.*?(?=))(["']\s*><\/iframe>)/g;
// **************************************************************************** // ****************************************************************************
function isStakeEnoughForPreview(stakedLevel) { function isStakeEnoughForPreview(stakedLevel) {
return stakedLevel && stakedLevel >= CHANNEL_STAKED_LEVEL_VIDEO_COMMENTS; return !stakedLevel || stakedLevel >= CHANNEL_STAKED_LEVEL_VIDEO_COMMENTS;
} }
// **************************************************************************** // ****************************************************************************