-
-
Notifications
You must be signed in to change notification settings - Fork 513
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
Introduce a location overview page #4068
Introduce a location overview page #4068
Conversation
30c8fe0
to
a6a685c
Compare
9952821
to
092ddc4
Compare
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.
Would it be easy to hide empty tables that are not loading?
Codecov Report
@@ Coverage Diff @@
## develop #4068 +/- ##
===========================================
- Coverage 55.59% 55.47% -0.12%
===========================================
Files 737 741 +4
Lines 58137 58304 +167
Branches 10182 10221 +39
===========================================
+ Hits 32320 32347 +27
- Misses 23642 23775 +133
- Partials 2175 2182 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
const currentExchangeRate = exchangeRate(mainCurrency); | ||
const blockchainTotalConverted = currentExchangeRate | ||
? blockchainTotal.multipliedBy(currentExchangeRate) | ||
: blockchainTotal; |
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.
So this check will work when there is no exchange rate for the selected currency, but which cases are these specifically? ETH/BTC?
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'm not sure though. I saw that the currentExchangeRate
can be undefined
at manualBalanceByLocation
getter, so I thought it is common to check it. Should I remove it? @kelsos
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.
no keep it, but I don't remember why the check is on manual balance, the only point I can think of this possibly being undefined is during the dashboard loading, but I am under the impression that we load the exchange rates early during the login.
@lukicenturi along with the fixing of the lint issues please add a change log entry. Other than that, if possible could we hide any empty tables that are not loading, and also the question remains, about which currencies under what conditions do not return an exchange rate. Other than that the PR is good. |
1d5cfe2
to
5391f2a
Compare
Changelog added, the empty tables are hidden. |
f42fc16
to
d637c65
Compare
d637c65
to
164d40c
Compare
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, thank you
Closes #4035
Checklist