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;