Skip to content

Commit

Permalink
fixes #598 by adding safety on object lookups (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
atomantic authored Jan 2, 2024
1 parent fcd51e6 commit fdb2248
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export const RouteTable: FC<RouteTableProps> = ({ forwardArray }) => {
cell: ({ row }: any) => (
<div style={{ whiteSpace: 'nowrap' }}>
{getNodeLink(
row.original.incoming_channel_info.node2_info.public_key,
row.original.incoming_channel_info.node2_info.alias
row.original.incoming_channel_info?.node2_info?.public_key,
row.original.incoming_channel_info?.node2_info?.alias
)}
</div>
),
Expand All @@ -53,8 +53,8 @@ export const RouteTable: FC<RouteTableProps> = ({ forwardArray }) => {
cell: ({ row }: any) => (
<div style={{ whiteSpace: 'nowrap' }}>
{getNodeLink(
row.original.outgoing_channel_info.node2_info.public_key,
row.original.outgoing_channel_info.node2_info.alias
row.original.outgoing_channel_info?.node2_info?.public_key,
row.original.outgoing_channel_info?.node2_info?.alias
)}
</div>
),
Expand Down

0 comments on commit fdb2248

Please sign in to comment.