From 2782e6da277587cba78b40d5254bdcb7c0570778 Mon Sep 17 00:00:00 2001 From: Jonathan Cobb Date: Wed, 5 Feb 2020 07:56:07 -0500 Subject: [PATCH] fix price format for cases where cents < 10 --- .../en_US/server/pre_auth/ResourceMessages.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bubble-server/src/main/resources/message_templates/en_US/server/pre_auth/ResourceMessages.properties b/bubble-server/src/main/resources/message_templates/en_US/server/pre_auth/ResourceMessages.properties index 975b2014..6e97d749 100644 --- a/bubble-server/src/main/resources/message_templates/en_US/server/pre_auth/ResourceMessages.properties +++ b/bubble-server/src/main/resources/message_templates/en_US/server/pre_auth/ResourceMessages.properties @@ -138,7 +138,7 @@ price_period_monthly_name=monthly price_period_monthly_unit=month price_period_yearly_name=annually price_period_yearly_unit=year -price_format=${{priceMajorUnits}}{{priceMinorUnits === 0 ? '' : '.'+priceMinorUnits}} {{messages['price_period_'+period+'_name']}} +price_format=${{priceMajorUnits}}{{priceMinorUnits === 0 ? '' : priceMinorUnits < 10 ? '.0'+priceMinorUnits : '.'+priceMinorUnits}} {{messages['price_period_'+period+'_name']}} # Token errors err.approvalToken.invalid=Code is incorrect or no longer valid