From 88cb18b7fd25c2fcf406ac9a3da9896a776fa058 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 2 Jun 2025 08:56:14 -0500 Subject: [PATCH] Use safe nav --- forms/top_up.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/top_up.rb b/forms/top_up.rb index 5864326ebd50f44446e81852f62884763e913a25..264a3d116a2ebe8ebf8666ecad5c2ab78e3b2269 100644 --- a/forms/top_up.rb +++ b/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