Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.
fix: issue listing prices when uah was added to the list of currencies (#823)
Miguel Ribeirobd20b5697659
diff --git a/includes/list_subscriptions.php b/includes/list_subscriptions.phpindex c2709f3..3f3c16f 100644--- a/includes/list_subscriptions.php+++ b/includes/list_subscriptions.php@@ -86,9 +86,13 @@ function formatPrice($price, $currencyCode, $currencies)$formattedPrice = CurrencyFormatter::format($price, $currencyCode);if (strstr($formattedPrice, $currencyCode)) {$symbol = $currencyCode;+foreach ($currencies as $currency) {- if ($currency['code'] === 'UAH') {- $symbol = $currency['symbol'];++ if ($currency['code'] === $currencyCode) {+ if ($currency['symbol'] != "") {+ $symbol = $currency['symbol'];+ }break;}}diff --git a/includes/version.php b/includes/version.phpindex ce9106e..0236427 100644--- a/includes/version.php+++ b/includes/version.php@@ -1,3 +1,3 @@<?php-$version = "v3.1.0";+$version = "v3.1.1";?>\ No newline at end of file