Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Ren

Manav Rathi836712c020e8
diff --git a/web/packages/accounts/pages/credentials.tsx b/web/packages/accounts/pages/credentials.tsx
index 4d6bae3f57..4d130dd336 100644
--- a/web/packages/accounts/pages/credentials.tsx
+++ b/web/packages/accounts/pages/credentials.tsx
@@ -18,7 +18,7 @@ import {
} from "@ente/shared/crypto/helpers";
import type { B64EncryptionResult } from "@ente/shared/crypto/types";
import { CustomError } from "@ente/shared/error";
-import { accountsAppURL, getEndpoint } from "@ente/shared/network/api";
+import { accountsAppURL, apiOrigin } from "@ente/shared/network/api";
import InMemoryStore, { MS_KEYS } from "@ente/shared/storage/InMemoryStore";
import {
LS_KEYS,
@@ -313,12 +313,12 @@ const Header_ = styled("div")`
`;
const ConnectionDetails: React.FC = () => {
- const apiOrigin = new URL(getEndpoint());
+ const host = new URL(apiOrigin()).host;
return (
<ConnectionDetails_>
<Typography variant="small" color="text.faint">
- {apiOrigin.host}
+ {host}
</Typography>
</ConnectionDetails_>
);