Skip to content

Commit 03cd0a7

Browse files
committed
Fix lint issue
1 parent 38dcad1 commit 03cd0a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/login/ChangeServerPage.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { useNavigate } from 'react-router-dom';
1616
import { Scanner } from '@yudiel/react-qr-scanner';
1717
import { useTranslation } from '../common/components/LocalizationProvider';
1818
import Loader from '../common/components/Loader';
19+
import { errorsActions } from '../store';
1920

2021
const currentServer = `${window.location.protocol}//${window.location.host}`;
2122

@@ -147,7 +148,7 @@ const ChangeServerPage = () => {
147148
<Scanner
148149
constraints={{ facingMode: 'environment' }}
149150
onScan={handleScanResult}
150-
onError={(error) => dispatch(errorsActions.push(error.message))}
151+
onError={(error) => dispatch(errorsActions.push(error))}
151152
className={classes.scannerVideo}
152153
/>
153154
</DialogContent>

0 commit comments

Comments
 (0)