Skip to content

Commit

Permalink
Merge pull request #3315 from dusk-network/fix-owner-provisioners
Browse files Browse the repository at this point in the history
explorer: fix owner key in provisioner page

Resolves #3305
  • Loading branch information
herr-seppia authored Jan 4, 2025
2 parents 77d52a4 + 3df8dad commit 08c5e98
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@
return () => resizeObserver.disconnect();
});
$: provisionerKey = middleEllipsis(
data.key,
calculateAdaptiveCharCount(screenWidth, 320, 1024, 4, 25)
$: adaptiveCharCount = calculateAdaptiveCharCount(
screenWidth,
320,
1024,
4,
25
);
$: provisionerKey = middleEllipsis(data.key, adaptiveCharCount);
</script>

<DetailList className="provisioners-list">
Expand All @@ -59,7 +63,7 @@
<Badge
data-tooltip-id="provisioners-tooltip"
data-tooltip-text={ownerType === "Account"
? provisionerKey
? middleEllipsis(ownerValue, adaptiveCharCount)
: ownerValue}
text={ownerType}
/>
Expand Down

0 comments on commit 08c5e98

Please sign in to comment.