Fixed bugs

This commit is contained in:
2026-08-19 14:13:53 -04:00
parent fb368bd98f
commit 2e439fce0e
5 changed files with 11 additions and 7 deletions
+7 -3
View File
@@ -66,10 +66,14 @@ export default class Enclave {
}
if (
this.serverList[hostname]?.publicKey !==
base58.encode(this.server.serverPublicKey)
this.serverList[hostname] &&
this.serverList[hostname].publicKey !==
base58.encode(this.server.serverPublicKey)
) {
console.error("Server's new public key doesn't match old one");
console.error("Server's new public key doesn't match old one", {
old: this.serverList[hostname].publicKey,
new: base58.encode(this.server.serverPublicKey),
});
return;
}
+2 -2
View File
@@ -43,9 +43,9 @@ export function RenderCategory({ channel }: { channel: Channel }) {
export function RenderChannels({ channels }: { channels: Channel[] }) {
return channels.map((channel) =>
channel.kind === "category" ? (
<RenderCategory channel={channel} />
<RenderCategory key={channel.id} channel={channel} />
) : (
<div className="w-full hover:bg-accent px-2.5 py-1.5 rounded-md flex gap-2.5 items-center select-none cursor-default text-sm text-muted-foreground">
<div key={channel.id} className="w-full hover:bg-accent px-2.5 py-1.5 rounded-md flex gap-2.5 items-center select-none cursor-default text-sm text-muted-foreground">
<ChannelIcon kind={channel.kind} />
{channel.name}
</div>