fix audit log currency

This commit is contained in:
Pete Matsyburka
2024-02-16 19:00:18 +02:00
parent bcbbf0dd42
commit 4449475467
+1 -1
View File
@@ -217,7 +217,7 @@ module Submissions
composer.formatted_text_box([{ text: '' }])
elsif field['type'].in?(%w[file 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:)