move isElectron check outside try catch

This commit is contained in:
Abhinav 2023-02-21 20:48:32 +05:30
parent 065a090608
commit eb7f53deb1

View file

@ -70,10 +70,10 @@ export default function ExportModal(props: Props) {
// SIDE EFFECTS
// ====================
useEffect(() => {
try {
if (!isElectron()) {
return;
}
try {
setExportFolder(getData(LS_KEYS.EXPORT)?.folder);
exportService.electronAPIs.registerStopExportListener(stopExport);