From cb65fb4b110b5ca2ce5f7597b93832622552997b Mon Sep 17 00:00:00 2001
From: Marco Rodolfi <marco.rodolfi@tuta.io>
Date: Thu, 22 Jun 2023 10:45:17 +0200
Subject: Fix: wrong condition on show select folder

---
 frontend/src/components/modals/filepicker/index.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'frontend/src/components/modals/filepicker/index.tsx')

diff --git a/frontend/src/components/modals/filepicker/index.tsx b/frontend/src/components/modals/filepicker/index.tsx
index 7aada5a5..de5af2db 100644
--- a/frontend/src/components/modals/filepicker/index.tsx
+++ b/frontend/src/components/modals/filepicker/index.tsx
@@ -327,7 +327,7 @@ const FilePicker: FunctionComponent<FilePickerProps> = ({
           </Focusable>
         </DialogControlsSection>
       </DialogBody>
-      {!loading && !error && !includeFiles && (
+      {!loading && error === FileErrorTypes.None && !includeFiles && (
         <DialogFooter>
           <DialogButton
             className="Primary"
-- 
cgit v1.2.3

