Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #591 from Shopify/fix-currency-js
Browse files Browse the repository at this point in the history
Fix currency JS formatting names to match Shopify core
  • Loading branch information
t-kelly authored May 24, 2018
2 parents 253e0b9 + 3237484 commit edab7c9
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/slate-theme/src/scripts/slate/currency.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
*/

slate.Currency = (function() {
slate.Currency = (function () {
var moneyFormat = '${{amount}}';

/**
Expand Down Expand Up @@ -51,14 +51,11 @@ slate.Currency = (function() {
case 'amount_no_decimals':
value = formatWithDelimiters(cents, 0);
break;
case 'amount_with_space_separator':
value = formatWithDelimiters(cents, 2, ' ', '.');
case 'amount_with_comma_separator':
value = formatWithDelimiters(cents, 2, '.', ',');
break;
case 'amount_no_decimals_with_comma_separator':
value = formatWithDelimiters(cents, 0, ',', '.');
break;
case 'amount_no_decimals_with_space_separator':
value = formatWithDelimiters(cents, 0, ' ');
value = formatWithDelimiters(cents, 0, '.', ',');
break;
}

Expand Down

0 comments on commit edab7c9

Please sign in to comment.