We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8fdba88 + 2f58849 commit 9ac3f49Copy full SHA for 9ac3f49
2 files changed
.changelog/1529.bugfix.md
@@ -0,0 +1 @@
1
+Fix displaying negative allowance changes
src/app/utils/transaction.ts
@@ -18,7 +18,9 @@ export const getConsensusTransactionToAddress = (transaction: Transaction) => {
18
export const getConsensusTransactionAmount = (transaction: Transaction) => {
19
switch (transaction.method) {
20
case ConsensusTxMethod.stakingAllow:
21
- return transaction.body?.amount_change
+ return transaction.body?.negative
22
+ ? `-${transaction.body?.amount_change}`
23
+ : transaction.body?.amount_change
24
case ConsensusTxMethod.stakingAddEscrow:
25
case ConsensusTxMethod.stakingTransfer:
26
return transaction.body?.amount
0 commit comments