Skip to content

Commit

Permalink
handle Loading, remove retrieval number (#1766)
Browse files Browse the repository at this point in the history
  • Loading branch information
LexLuthr authored Oct 20, 2023
1 parent 58e5249 commit 4502e03
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions react/src/Ipni.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ function ProviderIpniInfo({peerId}) {
if (error) return <div>Error: {"Fetching provider info from "+idxHost+": "+error.message}</div>
if (loading) return <div>Loading...</div>
if (!data) return null
if (!head.data) return null

return <>
<ProviderIpniInfoRender data={data} idxHost={idxHost} lad={head.data.ipniLatestAdvertisement} />
Expand Down Expand Up @@ -573,10 +574,7 @@ export function IpniMenuItem(props) {
<div className="menu-item" >
<img className="icon" alt="" src={bezier2Img} />
<Link key="ipni" to={basePath}>
<h3>Network Indexer {durationDisplay && '('+durationDisplay+')'}</h3>
<div className="menu-desc">
<b>{count}</b> retrievals
</div>
<h3>Network Indexer</h3>
</Link>
</div>
)
Expand Down

0 comments on commit 4502e03

Please sign in to comment.