We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eac4743 commit 3370971Copy full SHA for 3370971
src/pages/net_worth_pages.cpp
@@ -53,13 +53,13 @@ void budget::assets_card(budget::html_writer& w) {
53
for (const auto& [asset, amount] : w.cache.user_assets() | expand_value(w.cache) | not_zero) {
54
std::string group = asset.name.substr(0, asset.name.find(separator));
55
56
- if (!range_contains(groups, group)) {
57
- groups.emplace_back(std::move(group));
58
- }
59
-
60
if (amount) {
61
group_sums[group] += amount * exchange_rate(asset.currency, budget::local_day());
62
}
+
+ if (!range_contains(groups, group)) {
+ groups.emplace_back(std::move(group));
+ }
63
64
65
for (const auto& group : groups) {
0 commit comments