fix audit log currency

pull/217/head
Pete Matsyburka 2 years ago
parent bcbbf0dd42
commit 4449475467

@ -217,7 +217,7 @@ module Submissions
composer.formatted_text_box([{ text: '' }]) composer.formatted_text_box([{ text: '' }])
elsif field['type'].in?(%w[file payment]) elsif field['type'].in?(%w[file payment])
if field['type'] == 'payment' if field['type'] == 'payment'
unit = CURRENCY_SYMBOLS[field['preferences']['currency']] unit = CURRENCY_SYMBOLS[field['preferences']['currency']] || field['preferences']['currency']
price = ApplicationController.helpers.number_to_currency(field['preferences']['price'], unit:) price = ApplicationController.helpers.number_to_currency(field['preferences']['price'], unit:)

Loading…
Cancel
Save