Skip to content

Commit

Permalink
explorer: Fix wrong owner key shown in provisioners table
Browse files Browse the repository at this point in the history
Resolves #3377
  • Loading branch information
ascartabelli committed Jan 17, 2025
1 parent 78d8b3b commit 4d4bdea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
7 changes: 5 additions & 2 deletions explorer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Fix wrong owner key shown in provisioners table [#3377]

## [1.0.1] - 2025-01-07

### Fixed

- Fix Owner key (Provisioners page) [#3315]
- Fix Owner key (Provisioners page) [#3305]

## [1.0.0] - 2024-12-22

Expand Down Expand Up @@ -138,8 +140,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#3215]: https://github.com/dusk-network/rusk/issues/3215
[#3218]: https://github.com/dusk-network/rusk/issues/3218
[#3249]: https://github.com/dusk-network/rusk/issues/3249
[#3315]: https://github.com/dusk-network/rusk/pull/3315
[#3305]: https://github.com/dusk-network/rusk/issues/3305
[#3338]: https://github.com/dusk-network/rusk/issues/3338
[#3377]: https://github.com/dusk-network/rusk/issues/3377

<!-- VERSIONS -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,15 @@
<TableBody>
{#each data as provisioner (provisioner)}
{@const [ownerType, ownerValue] = ownPairs(provisioner.owner)[0]}
{@const provisionerKey = middleEllipsis(
provisioner.key,
HASH_CHARS_LENGTH
)}
<TableRow>
<TableCell>{provisionerKey}</TableCell>
<TableCell
>{middleEllipsis(provisioner.key, HASH_CHARS_LENGTH)}</TableCell
>
<TableCell>
<Badge
data-tooltip-id="provisioners-tooltip"
data-tooltip-text={ownerType === "Account"
? provisionerKey
? middleEllipsis(ownerValue, HASH_CHARS_LENGTH)
: ownerValue}
text={ownerType}
/>
Expand Down

0 comments on commit 4d4bdea

Please sign in to comment.