Update delete user to handle superadmin case

This commit is contained in:
Alex Holliday committed 2024-09-26 11:50:50 +08:00
1 parent 5ec032466b
commit edd9b5a6aa
4 files changed
+51 -15

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ const Settings = ({ isAdmin }) => {
const { timezone } = useSelector((state) => state.ui);
const [checksIsLoading, setChecksIsLoading] = useState(false);
const [form, setForm] = useState({
ttl: (checkTTL / SECONDS_PER_DAY).toString(),
ttl: checkTTL ? (checkTTL / SECONDS_PER_DAY).toString() : 0,
});
const [errors, setErrors] = useState({});
const dispatch = useDispatch();