summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/renderer/components/Modal.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/src/renderer/components/Modal.tsx b/gui/src/renderer/components/Modal.tsx
index fbf3dc8ea9..01a2bba321 100644
--- a/gui/src/renderer/components/Modal.tsx
+++ b/gui/src/renderer/components/Modal.tsx
@@ -2,6 +2,7 @@ import React, { useContext, useEffect, useMemo, useRef, useState } from 'react';
import ReactDOM from 'react-dom';
import styled from 'styled-components';
import { colors } from '../../config.json';
+import log from '../../shared/logging';
import { Scheduler } from '../../shared/scheduler';
import ImageView from './ImageView';
@@ -162,7 +163,7 @@ class ModalAlertWithContext extends React.Component<IModalAlertProps & IModalCon
this.modalRef.current?.focus();
});
} else {
- throw Error('Modal container not found when mounting modal');
+ log.error('Modal container not found when mounting modal');
}
}