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

Support corrections (increase/decrease debt) #2373

Merged
merged 3 commits into from
Aug 15, 2024
Merged

Support corrections (increase/decrease debt) #2373

merged 3 commits into from
Aug 15, 2024

Conversation

hieronx
Copy link
Contributor

@hieronx hieronx commented Aug 14, 2024

Description

This pull request...

#

Approvals

  • Dev

Screenshots

Impact

Copy link

github-actions bot commented Aug 14, 2024

PR deployed in Google Cloud
URL: https://pr2373-app-ff-production.k-f.dev
Commit #: 277bb1a
To access the functions directly check the corresponding deploy Action

Copy link

github-actions bot commented Aug 14, 2024

PR deployed in Google Cloud
URL: https://app-pr2373.k-f.dev
Commit #: 277bb1a
To access the functions directly check the corresponding deploy Action

@@ -64,34 +64,63 @@ export const TransactionHistoryTable = ({
return {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe is a good idea to have this line of code on line 63

const netFlow = activeAssetId
          ? activeAssetId === transaction.toAsset?.id.split('-')[1]
            ? 'positive'
            : 'negative'
          : 'neutral',

and then add netFlow below in each corresponding case. In case we are debugging in the future so we can only change one place instead of the 5 different values within the same function.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed! Will change.

Copy link
Collaborator

@kattylucy kattylucy left a comment

Choose a reason for hiding this comment

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

code wise looks good to me!

@hieronx hieronx merged commit 8a1a36f into main Aug 15, 2024
13 checks passed
@hieronx hieronx deleted the corrections branch August 15, 2024 05:56
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