aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/UserPage.jsx
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-02-24 16:02:48 -0800
committerAnton Tananaev <anton@traccar.org>2024-02-24 16:02:48 -0800
commit8bd7cba6f5ce56bcccda1459cdd953b3add799d6 (patch)
treed133b5e57cee061fd49eeddcec35dc3b38254a6d /modern/src/settings/UserPage.jsx
parent3106f6ab617b23d6fb2587c3cde2b684abac2605 (diff)
downloadtrackermap-web-8bd7cba6f5ce56bcccda1459cdd953b3add799d6.tar.gz
trackermap-web-8bd7cba6f5ce56bcccda1459cdd953b3add799d6.tar.bz2
trackermap-web-8bd7cba6f5ce56bcccda1459cdd953b3add799d6.zip
Fix lint and issues
Diffstat (limited to 'modern/src/settings/UserPage.jsx')
-rw-r--r--modern/src/settings/UserPage.jsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/modern/src/settings/UserPage.jsx b/modern/src/settings/UserPage.jsx
index 02312a86..4e0cab2c 100644
--- a/modern/src/settings/UserPage.jsx
+++ b/modern/src/settings/UserPage.jsx
@@ -18,7 +18,6 @@ import {
IconButton,
OutlinedInput,
} from '@mui/material';
-import makeStyles from '@mui/styles/makeStyles';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import DeleteForeverIcon from '@mui/icons-material/DeleteForever';
import CachedIcon from '@mui/icons-material/Cached';
@@ -84,7 +83,7 @@ const UserPage = () => {
const handleGenerateTotp = useCatch(async () => {
const response = await fetch('/api/users/totp', { method: 'POST' });
if (response.ok) {
- setItem({ ...item, totpKey: await response.text() })
+ setItem({ ...item, totpKey: await response.text() });
} else {
throw Error(await response.text());
}