Fix build errors

This commit is contained in:
Tom Fifield
2024-05-27 12:08:32 +08:00
parent 54c983439c
commit e825a737b0
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -82,7 +82,8 @@ export const MessagesPage = (): JSX.Element => {
{
icon: WaypointsIcon,
async onClick() {
await connection?.traceRoute(nodes.get(activeChat)?.num).then(() =>
if (nodes.get(activeChat)?.num === undefined) return;
await connection?.traceRoute(nodes.get(activeChat)?.num!).then(() =>
toast({
title: `Traceroute sent.`,
}),