From cc8043aa3155a921924d91b7ffb226c567a77d2e Mon Sep 17 00:00:00 2001 From: John Tore Simonsen Date: Fri, 4 Oct 2024 14:31:06 +0200 Subject: [PATCH] eslint --- src/components/views/dialogs/ExportDialog.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/views/dialogs/ExportDialog.tsx b/src/components/views/dialogs/ExportDialog.tsx index 78cdfa5ba88..6adf7fc60f5 100644 --- a/src/components/views/dialogs/ExportDialog.tsx +++ b/src/components/views/dialogs/ExportDialog.tsx @@ -158,10 +158,11 @@ const ExportDialog: React.FC = ({ room, onFinished }) => { const onExportClick = async (): Promise => { const isValidSize = - (!setSizeLimit || + !setSizeLimit || (await sizeLimitRef.current?.validate({ focused: false, - }))) || !SettingsStore.getValue(UIFeature.ExportDefaultSizeLimit); + })) || + !SettingsStore.getValue(UIFeature.ExportDefaultSizeLimit); if (!isValidSize) { sizeLimitRef.current?.validate({ focused: true }); return;