diff --git a/apps/desktop/src/App.tsx b/apps/desktop/src/App.tsx index 632bf6b58f..947a548f96 100644 --- a/apps/desktop/src/App.tsx +++ b/apps/desktop/src/App.tsx @@ -25,6 +25,7 @@ import { LANGUAGE_KEY, savePlainToStorage, } from '../../../client/src/services/storage'; +import { LocaleType } from '../../../client/src/types/general'; import TextSearch from './TextSearch'; // let askedToUpdate = false; @@ -98,8 +99,8 @@ function App() { const [release, setRelease] = useState(''); const contentContainer = useRef(null); const [envConfig, setEnvConfig] = useState({}); - const [locale, setLocale] = useState( - getPlainFromStorage(LANGUAGE_KEY) || 'en', + const [locale, setLocale] = useState( + (getPlainFromStorage(LANGUAGE_KEY) as LocaleType | null) || 'en', ); useEffect(() => { diff --git a/client/src/components/ReportBugModal/index.tsx b/client/src/components/ReportBugModal/index.tsx index 36c17e743e..c5f198d5e0 100644 --- a/client/src/components/ReportBugModal/index.tsx +++ b/client/src/components/ReportBugModal/index.tsx @@ -100,6 +100,7 @@ const ReportBugModal = ({ ...values, unique_id: envConfig.tracking_id || '', app_version: release, + metadata: JSON.stringify(os), }); } setSubmitted(true); diff --git a/client/src/services/api.ts b/client/src/services/api.ts index 12a0f9cdfb..5b6573546d 100644 --- a/client/src/services/api.ts +++ b/client/src/services/api.ts @@ -174,6 +174,7 @@ export const saveBugReport = (report: { text: string; unique_id: string; app_version: string; + metadata: string; }) => axios.post(`${DB_API}/bug_reports`, report).then((r) => r.data); export const saveCrashReport = (report: {