File tree 1 file changed +4
-5
lines changed
src-gui/src/renderer/components/modal/provider
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const useStyles = makeStyles((theme) => ({
31
31
*/
32
32
function ProviderMarkupChip ( { provider } : { provider : ExtendedProviderStatus } ) {
33
33
const marketExchangeRate = useAppSelector ( s => s . rates ?. xmrBtcRate ) ;
34
- if ( marketExchangeRate === null )
34
+ if ( marketExchangeRate === null )
35
35
return null ;
36
36
37
37
const providerExchangeRate = satsToBtc ( provider . price ) ;
@@ -63,7 +63,7 @@ export default function ProviderInfo({
63
63
{ provider . multiAddr }
64
64
</ Typography >
65
65
< Typography color = "textSecondary" gutterBottom >
66
- < TruncatedText > { provider . peerId } </ TruncatedText >
66
+ < TruncatedText limit = { 16 } truncateMiddle > { provider . peerId } </ TruncatedText >
67
67
</ Typography >
68
68
< Typography variant = "caption" >
69
69
Exchange rate:{ " " }
@@ -82,9 +82,8 @@ export default function ProviderInfo({
82
82
) }
83
83
{ provider . age ? (
84
84
< Chip
85
- label = { `Went online ${ Math . round ( secondsToDays ( provider . age ) ) } ${
86
- provider . age === 1 ? "day" : "days"
87
- } ago`}
85
+ label = { `Went online ${ Math . round ( secondsToDays ( provider . age ) ) } ${ provider . age === 1 ? "day" : "days"
86
+ } ago`}
88
87
/>
89
88
) : (
90
89
< Chip label = "Discovered via rendezvous point" />
You can’t perform that action at this time.
0 commit comments