Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VDG] Dont copy negative values on Transaction Details's amount. #10207

Merged
merged 2 commits into from Mar 23, 2023

Conversation

jmacato
Copy link
Contributor

@jmacato jmacato commented Feb 28, 2023

Fixes #10154

cc @zkSNACKs/visual-design-group

@jmacato jmacato changed the title Dont copy negative values on Transaction Details's amount. [VDG] Dont copy negative values on Transaction Details's amount. Feb 28, 2023
MarnixCroes
MarnixCroes previously approved these changes Feb 28, 2023
Copy link
Collaborator

@MarnixCroes MarnixCroes left a comment

Choose a reason for hiding this comment

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

tACK

Copy link
Collaborator

@soosr soosr left a comment

Choose a reason for hiding this comment

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

I think a proper fix would be to make the amount always a not negative value, and call the Amount field Incoming or Outgoing depending on what was the transaction.

yahiheb
yahiheb previously approved these changes Mar 1, 2023
Copy link
Collaborator

@yahiheb yahiheb left a comment

Choose a reason for hiding this comment

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

tACK

Yet Roland's comment here #10207 (review) makes sense, it makes the transaction details page better.

@soosr soosr dismissed stale reviews from yahiheb and MarnixCroes via bceb9b0 March 22, 2023 09:36
Copy link
Collaborator

@soosr soosr left a comment

Choose a reason for hiding this comment

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

tACK

@soosr soosr requested a review from yahiheb March 22, 2023 09:37
@soosr soosr merged commit b61a8bc into zkSNACKs:master Mar 23, 2023
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Copy amount in tx details copies negative value
4 participants