1
0
Fork 0

chore: Linter issues

This commit is contained in:
joostdecock 2023-08-20 18:53:35 +02:00
parent cad7ccf294
commit 782b8e60e3
2 changed files with 2 additions and 3 deletions

View file

@ -295,7 +295,6 @@ export const NewApikey = ({ standalone = false }) => {
const toast = useToast()
// State
const [keys, setKeys] = useState([])
const [generate, setGenerate] = useState(false)
const [added, setAdded] = useState(0)
@ -308,6 +307,7 @@ export const NewApikey = ({ standalone = false }) => {
{...{
t,
account,
generate,
setGenerate,
backend,
toast,

View file

@ -51,7 +51,7 @@ export const ButtonText = ({ children }) => (
export const SignIn = () => {
const { setAccount, setToken, seenUser, setSeenUser } = useAccount()
const { t } = useTranslation(['signin', 'signup', 'toast'])
const { t } = useTranslation(['signin', 'signup', 'status'])
const backend = useBackend()
const router = useRouter()
const { setLoadingStatus, LoadingStatus } = useLoadingStatus()
@ -102,7 +102,6 @@ export const SignIn = () => {
setLoadingStatus([true, msg, true, true])
router.push('/account')
}
return toast.success(<b>{msg}</b>)
}
// Sign-in failed
if (result.response?.response?.status === 401) {