fix: getSettingValue quebrando a app

websocket
adriano 2024-05-21 10:15:59 -03:00
parent 7bb73cfa19
commit 3ced558b18
1 changed files with 5 additions and 1 deletions

View File

@ -182,7 +182,11 @@ const Settings = () => {
}
const getSettingValue = (key, _obj = false) => {
const { value, obj } = settings.find((s) => s.key === key)
//const { value, obj } = settings.find((s) => s.key === key)
const setting = settings.find((s) => s.key === key)
const value = setting?.value || ""
const obj = setting?.obj || null
if (_obj)
return obj