Bläddra i källkod

early return if active tab is null

ryoji-s 3 år sedan
förälder
incheckning
ecea71d6e4
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      packages/app/src/components/PageAccessoriesModal.tsx

+ 1 - 1
packages/app/src/components/PageAccessoriesModal.tsx

@@ -114,7 +114,7 @@ const PageAccessoriesModal = (): JSX.Element => {
     </div>
   ), [close, isWindowExpanded]);
 
-  if (status == null) {
+  if (status == null || activeTab == null) {
     return <></>;
   }