Fix build errors

This commit is contained in:
Tom Fifield committed 2024-05-27 12:08:32 +08:00
1 parent 54c983439c
commit e825a737b0
2 files changed
+4 -3

No files matched your search

+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.`,
}),