F #3951: Minor fixes (#842)

This commit is contained in:
Sergio Betanzos authored and GitHub committed 2021-02-18 18:58:37 +01:00
1 parent a3df79533f
commit e8a8daed5a
2 files changed
+5 -6

No files matched your search

@@ -79,12 +79,10 @@ const Settings = () => {
const values = Object.entries(settings)
.map(([key, value]) => `\n ${String(key).toUpperCase()} = "${value}"`)
.join(',')
console.log({values})
updateUser({
template: `FIREEDGE = [\n SCHEME = "${scheme}",\n LANG = "${lang}" ]\n`
}).then(() => context.changeLang(lang))
updateUser({ template: `FIREEDGE = [${values}]\n` })
.then(() => context.changeLang(settings.lang))
}
return (
+2 -1
View File
@@ -15,7 +15,7 @@ import {
logout as logoutRequest
} from 'client/actions/user'
import { setGroups } from 'client/actions/pool'
import { updateScheme, enqueueError, enqueueSuccess } from 'client/actions/general'
import { updateScheme, enqueueError, enqueueSuccess, closeSnackbar } from 'client/actions/general'
const useAuth = () => {
const {
@@ -46,6 +46,7 @@ const useAuth = () => {
.then(data => {
const { id, token } = data
dispatch(successAuth())
dispatch(closeSnackbar())
if (token) {
storage(JWT_NAME, token, remember)