From c2c775bd5bd11ce5f64bc0bb6626beb81dfdf87c Mon Sep 17 00:00:00 2001 From: Yana Date: Mon, 6 Jan 2025 17:49:04 +0200 Subject: [PATCH] fix NodeData typing in Search Component --- .../src/components/search/NodeAndAddressSearch.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/explorer-nextjs/src/components/search/NodeAndAddressSearch.tsx b/explorer-nextjs/src/components/search/NodeAndAddressSearch.tsx index 28e4c250f3..7de6edeb81 100644 --- a/explorer-nextjs/src/components/search/NodeAndAddressSearch.tsx +++ b/explorer-nextjs/src/components/search/NodeAndAddressSearch.tsx @@ -1,8 +1,8 @@ "use client"; +import type NodeData from "@/app/api/types"; import { NYM_NODE_BONDED } from "@/app/api/urls"; import { Search } from "@mui/icons-material"; import { Button, CircularProgress, Stack, Typography } from "@mui/material"; -import type { NymNodeDetails } from "@nymproject/types"; import { useRouter } from "next/navigation"; import { useState } from "react"; import Input from "../input/Input"; @@ -46,8 +46,8 @@ const NodeAndAddressSearch = () => { if (response.ok) { const nodes = await response.json(); const matchingNode = nodes.data.find( - (node: NymNodeDetails) => - node.bond_information.identity_key === inputValue, + (node: NodeData) => + node.bond_information.node.identity_key === inputValue, ); if (matchingNode) {