Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

bug: Use correct currency value while setting the currency. (#2018)

Joseph Ho8e6b81af77d9
diff --git a/app/views/shared/_money_field.html.erb b/app/views/shared/_money_field.html.erb
index ea3273ad..166abdf9 100644
--- a/app/views/shared/_money_field.html.erb
+++ b/app/views/shared/_money_field.html.erb
@@ -45,7 +45,7 @@
<div>
<%= form.select currency_method,
currencies_for_select.map(&:iso_code),
- { inline: true, selected: currency_value },
+ { inline: true, selected: currency.iso_code },
{
class: "w-fit pr-5 disabled:text-subdued form-field__input",
disabled: options[:disable_currency],