Skip to content

Conversation

@lissavxo
Copy link
Collaborator

@lissavxo lissavxo commented Jul 2, 2025

Related to

Description

Small fix in shouldTriggerOnSuccess function to get the amount from currencyObject.
Sometimes we call shouldTriggerOnSuccess function with currencyObject but there is no need to convert the amount to value because the currencyObject.currency is crypto currency. This PR checks if currencyObject.currency is crypto currency and it converts amount to value only if currencyObject.currency is fiat.

Test plan

@lissavxo lissavxo requested a review from chedieck July 2, 2025 19:16
@lissavxo lissavxo force-pushed the fix/should-trigger-success-amount branch from 7d32c51 to dd92787 Compare July 9, 2025 18:54
@chedieck
Copy link
Collaborator

How can I see what is this fixing? what is the test plan?

@Klakurka
Copy link
Member

Is this tied to any task (eg. #318)?

@lissavxo
Copy link
Collaborator Author

How can I see what is this fixing? what is the test plan?

just make sure the onSuccess behavior is happening as expected

@lissavxo
Copy link
Collaborator Author

I am not sure how to reproduce this error so I am leaving it on hold for now

@lissavxo lissavxo marked this pull request as draft July 25, 2025 19: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.

4 participants