From b202c3ff3a4f751766f76c6cef5294887d1d98d2 Mon Sep 17 00:00:00 2001 From: Julian Dominguez-Schatz Date: Thu, 31 Oct 2024 23:19:44 -0400 Subject: [PATCH] PR feedback --- packages/desktop-client/src/components/App.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/desktop-client/src/components/App.tsx b/packages/desktop-client/src/components/App.tsx index e81cca7734f..75841207b0c 100644 --- a/packages/desktop-client/src/components/App.tsx +++ b/packages/desktop-client/src/components/App.tsx @@ -98,14 +98,14 @@ function AppInner() { loadingText: t('Retrieving remote files...'), }), ); - await send('get-remote-files').then(files => { - if (files) { - const remoteFile = files.find(f => f.fileId === cloudFileId); - if (remoteFile && remoteFile.deleted) { - dispatch(closeBudget()); - } + + const files = await send('get-remote-files'); + if (files) { + const remoteFile = files.find(f => f.fileId === cloudFileId); + if (remoteFile && remoteFile.deleted) { + dispatch(closeBudget()); } - }); + } await maybeUpdate(); }