File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import { useNavigate } from 'react-router-dom';
16
16
import { Scanner } from '@yudiel/react-qr-scanner' ;
17
17
import { useTranslation } from '../common/components/LocalizationProvider' ;
18
18
import Loader from '../common/components/Loader' ;
19
+ import { errorsActions } from '../store' ;
19
20
20
21
const currentServer = `${ window . location . protocol } //${ window . location . host } ` ;
21
22
@@ -147,7 +148,7 @@ const ChangeServerPage = () => {
147
148
< Scanner
148
149
constraints = { { facingMode : 'environment' } }
149
150
onScan = { handleScanResult }
150
- onError = { ( error ) => dispatch ( errorsActions . push ( error . message ) ) }
151
+ onError = { ( error ) => dispatch ( errorsActions . push ( error ) ) }
151
152
className = { classes . scannerVideo }
152
153
/>
153
154
</ DialogContent >
You can’t perform that action at this time.
0 commit comments