diff --git a/server/utils.lua b/server/utils.lua index c7d6651..f792201 100644 --- a/server/utils.lua +++ b/server/utils.lua @@ -6,7 +6,7 @@ function Response(isSuccess, errorMessage, data) } end return { - status = "ok", + status = "success", data = data } end diff --git a/web/src/App.tsx b/web/src/App.tsx index 917ac4d..0f67f41 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -8,7 +8,7 @@ import { isEnvBrowser } from './utils/misc'; import { fetchNui } from './utils/fetchNui'; import { DefaultUISetting, ISettingContext, UISetting } from './types'; -const SettingContext = createContext(DefaultUISetting); +export const SettingContext = createContext(DefaultUISetting); function App() { const show = useSelector((state: RootState) => state.main.show);