A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: fix typo
Abdullah Atta2e84099c809c
diff --git a/apps/web/src/dialogs/settings/components/servers-configuration.tsx b/apps/web/src/dialogs/settings/components/servers-configuration.tsxindex e8ebea0a5..560a4f67b 100644--- a/apps/web/src/dialogs/settings/components/servers-configuration.tsx+++ b/apps/web/src/dialogs/settings/components/servers-configuration.tsx@@ -110,7 +110,7 @@ export function ServersConfiguration() {borderRadius: "default"}}>- Connected to all servers sucessfully.+ Connected to all servers successfully.</Text>) : null}<Flex sx={{ mt: 1, justifyContent: "end", gap: 1 }}>@@ -146,7 +146,9 @@ export function ServersConfiguration() {try {for (const host of HostIds) {const url = urls[host];- const server = SERVERS.find((s) => s.host === host)!;+ const server = SERVERS.find((s) => s.host === host);+ if (!server)+ throw new Error(`Server with host ${host} not found.`);if (!url) throw new Error("All server urls are required.");const version = await fetch(`${url}/version`).then((r) => r.json() as Promise<VersionResponse>)