From 2400fe19fe224d70758781310757b87da49a4b3d Mon Sep 17 00:00:00 2001 From: zlayine Date: Tue, 5 Dec 2023 19:25:44 +0300 Subject: [PATCH] fix PLA-1059 --- .../collection/DetailsCollectionSlideover.vue | 2 +- .../slideovers/common/DetailsTransactionSlideover.vue | 11 ++++++++++- resources/js/util/royalty.ts | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/resources/js/components/slideovers/collection/DetailsCollectionSlideover.vue b/resources/js/components/slideovers/collection/DetailsCollectionSlideover.vue index f5a04e2..f71eee6 100644 --- a/resources/js/components/slideovers/collection/DetailsCollectionSlideover.vue +++ b/resources/js/components/slideovers/collection/DetailsCollectionSlideover.vue @@ -20,7 +20,7 @@
Percentage
-
{{ Royalty.getRoyaltyPercentage(item) }}%
+
{{ Royalty.getRoyaltyPercentage(item) * 100 }}%
diff --git a/resources/js/components/slideovers/common/DetailsTransactionSlideover.vue b/resources/js/components/slideovers/common/DetailsTransactionSlideover.vue index df95dd8..ced2daa 100644 --- a/resources/js/components/slideovers/common/DetailsTransactionSlideover.vue +++ b/resources/js/components/slideovers/common/DetailsTransactionSlideover.vue @@ -66,7 +66,10 @@
State
{{ transaction.state }}
-
+
Result
@@ -114,6 +117,12 @@ v-if="isAddressKey(param.type) && param.value" :address="`0x${param.value}`" /> +
+ {{ param.value / 10000000 }}% +
{{ param.value ?? '-' }}
diff --git a/resources/js/util/royalty.ts b/resources/js/util/royalty.ts index 8c6e0d4..741b716 100644 --- a/resources/js/util/royalty.ts +++ b/resources/js/util/royalty.ts @@ -7,7 +7,7 @@ export default class Royalty { static getRoyaltyPercentage(item: any) { if (item?.royalty?.percentage) { - return item.royalty.percentage * 100; + return item.royalty.percentage; } return 0;