Change summary
sgx_jmp.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Detailed changes
@@ -328,7 +328,7 @@ command :execute?, node: "buy-credit", sessionid: nil do |iq|
form.fields = [
{
type: "fixed",
- value: "Current balance: $#{balance.to_s('F')}"
+ value: "Current balance: $#{'%.2f' % balance}"
},
({
var: "payment_method",
@@ -387,7 +387,7 @@ command :execute?, node: "buy-credit", sessionid: nil do |iq|
reply2.status = :completed
note = reply2.note
note[:type] = :info
- note.content = "$#{amount.to_s('F')} added to your account balance."
+ note.content = "$#{'%.2f' % amount} added to your account balance."
command_reply_and_done(reply2)
}.catch { |e|