fix
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
@@ -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);
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user