From b6fcd16cd41771c8e922e8fd4e78e4c4de810323 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Tue, 30 Mar 2021 01:05:08 -0400
Subject: fixed testDocProps for styleProviders

---
 src/client/views/StyleProvider.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/client/views/StyleProvider.tsx')

diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx
index 48689705c..8404f05dd 100644
--- a/src/client/views/StyleProvider.tsx
+++ b/src/client/views/StyleProvider.tsx
@@ -54,7 +54,7 @@ function toggleBackground(doc: Doc) {
 }
 
 export function testDocProps(toBeDetermined: any): toBeDetermined is DocumentViewProps {
-    return (toBeDetermined?.isContentActive) ? undefined : toBeDetermined;
+    return (toBeDetermined?.isContentActive) ? toBeDetermined : undefined;
 }
 
 //
-- 
cgit v1.2.3-70-g09d2

