forms/top_up.rb 🔗
@@ -1,7 +1,7 @@
form!
title "Buy Account Credit"
-if @max_top_up_amount & @max_top_up_amount.positive?
+if @max_top_up_amount&.positive?
instructions "Max amount: $#{@max_top_up_amount}"
end
Stephen Paul Weber created
forms/top_up.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -1,7 +1,7 @@
form!
title "Buy Account Credit"
-if @max_top_up_amount & @max_top_up_amount.positive?
+if @max_top_up_amount&.positive?
instructions "Max amount: $#{@max_top_up_amount}"
end