fix
This commit is contained in:
@@ -70,6 +70,8 @@ export default class Enclave {
|
||||
isSecure,
|
||||
publicKey: base58.encode(this.server.serverPublicKey),
|
||||
};
|
||||
|
||||
this.forceRender();
|
||||
}
|
||||
|
||||
public getClientSecretKey() {
|
||||
|
||||
@@ -17,7 +17,7 @@ export default function ServerList({
|
||||
src={getHTTPUrl(hostname, server.isSecure, "/icon")}
|
||||
key={hostname}
|
||||
className={
|
||||
server.publicKey === appRef.current?.server?.hostname
|
||||
hostname === appRef.current?.server?.hostname
|
||||
? "rounded-lg"
|
||||
: "rounded-full"
|
||||
}
|
||||
@@ -44,8 +44,6 @@ export default function ServerList({
|
||||
appRef.current.connectToServer(hostname, isSecure).then(() => {
|
||||
if (!appRef.current) return;
|
||||
|
||||
appRef.current.forceRender();
|
||||
|
||||
saveServerList(appRef.current.serverList);
|
||||
});
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user