simplify if statement
This commit is contained in:
1 parent
e72a40f1c9
commit
a7a34981cf
1 file changed
+1
-1
@@ -211,7 +211,7 @@ export const ClientPreview = as<'div', { url: string }>(({ url, ...props }, ref)
|
||||
|
||||
let previewContent;
|
||||
|
||||
if (isYoutube && videoInfo) {
|
||||
if (videoInfo) {
|
||||
if (showYoutube) {
|
||||
if (embedStatus.status === AsyncStatus.Error) return null;
|
||||
|
||||
|
||||
Reference in new issue
Block a user