Skip to content

Commit 0e51aa8

Browse files
committed
Remove toParts portion of function, since it's not supported in Safari
1 parent d8a5289 commit 0e51aa8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/App.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export default class App extends Component {
161161

162162
// NOTE: This function is for _displaying_ a currency value to a user. It
163163
// adds a currency unit to the beginning or end of the number!
164-
currencyDisplay(amount, toParts=false, convert=true) {
164+
currencyDisplay(amount, convert=true) {
165165
const { account } = this.state;
166166
const locale = getStoredValue('i18nextLng');
167167
const symbol = getStoredValue('currency', account) || CONFIG.CURRENCY.DEFAULT_CURRENCY;
@@ -175,7 +175,8 @@ export default class App extends Component {
175175
currency: symbol,
176176
maximumFractionDigits: 2
177177
});
178-
return toParts ? formatter.formatToParts(amount) : formatter.format(amount);
178+
179+
return formatter.format(amount);
179180
}
180181

181182
/*

0 commit comments

Comments
 (0)