-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add On-Ramp Aggregator Analytics #4362
Conversation
ah, forgot to run snapshots updates |
const amountIsBelowMinimum = useMemo( | ||
() => amountNumber !== 0 && limits && amountNumber < limits.minAmount, | ||
[amountNumber, limits], | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think using useMemo
for basic methods can harm the performance. I'll leave this article here as reference
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree
amount: number; | ||
location: ScreenLocation; | ||
}; | ||
ONRAMP_CANCELED: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just noticed we have this inconsistency between "Canceled" and "Cancelled"
ONRAMP_CANCELED: { | |
ONRAMP_CANCELLED: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch. I will update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just checked, this is not a mistake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, regardless we should agree on using only one word (nitpick). In this same PR you can see that CANCELLED
and CANCELED
are being used, this occurs in other parts of the app too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Let's go with Canceled
—this is what John Brennan recommends in the new MetaMetrics Improvement Proposal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There are two minor comments to be resolved. I don't think it's reason enough to block this PR, I'll leave it to @wachunei to solve them now or in another development.
No description provided.