Skip to content

fix: fix tx history#2361

Merged
Keith-CY merged 1 commit intodevelopfrom
fix-tx-history
May 5, 2022
Merged

fix: fix tx history#2361
Keith-CY merged 1 commit intodevelopfrom
fix-tx-history

Conversation

@Keith-CY
Copy link
Collaborator

@Keith-CY Keith-CY commented May 1, 2022

  1. fix sudt amount of creating sudt asset account, it was not
    set when txType is one of 'create' and 'destroy'
  2. update export-history to make exported history consistent
    with those displayed in window

--- screenshots ---

Fix sudt amount of creating sudt asset account

Before
image

After
image

Fix exported history to be consistent with that displayed in window

Before
image

After
Pasted Graphic 17

@Keith-CY Keith-CY marked this pull request as draft May 1, 2022 14:45
1. fix sudt amount of creating sudt asset account, it was not
set when txType is one of 'create' and 'destroy'
2. update export-history to make exported history consistent
with those displayed in window
@Keith-CY Keith-CY requested review from Cedar67 and yanguoyu May 4, 2022 14:08
@Keith-CY Keith-CY marked this pull request as ready for review May 4, 2022 14:09
@Keith-CY Keith-CY requested a review from qiweiii May 5, 2022 01:40
} else {
sUDTAmount = '--'
}
if (['create', 'destroy'].includes(tx.type || '')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary || ''

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary || ''

tx.type could be undefined that will be blamed by tsc undefined cannot be assigned to string(string is required by arr.includes())

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha

@Keith-CY Keith-CY merged commit dd56c2b into develop May 5, 2022
@Keith-CY Keith-CY deleted the fix-tx-history branch May 5, 2022 06:30
@Keith-CY Keith-CY mentioned this pull request May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants