This commit is contained in:
2026-08-18 19:13:39 +02:00
parent c6c1b27d7e
commit 680794d275
2 changed files with 3 additions and 3 deletions
+2
View File
@@ -70,6 +70,8 @@ export default class Enclave {
isSecure, isSecure,
publicKey: base58.encode(this.server.serverPublicKey), publicKey: base58.encode(this.server.serverPublicKey),
}; };
this.forceRender();
} }
public getClientSecretKey() { public getClientSecretKey() {
+1 -3
View File
@@ -17,7 +17,7 @@ export default function ServerList({
src={getHTTPUrl(hostname, server.isSecure, "/icon")} src={getHTTPUrl(hostname, server.isSecure, "/icon")}
key={hostname} key={hostname}
className={ className={
server.publicKey === appRef.current?.server?.hostname hostname === appRef.current?.server?.hostname
? "rounded-lg" ? "rounded-lg"
: "rounded-full" : "rounded-full"
} }
@@ -44,8 +44,6 @@ export default function ServerList({
appRef.current.connectToServer(hostname, isSecure).then(() => { appRef.current.connectToServer(hostname, isSecure).then(() => {
if (!appRef.current) return; if (!appRef.current) return;
appRef.current.forceRender();
saveServerList(appRef.current.serverList); saveServerList(appRef.current.serverList);
}); });
}} }}