Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

mamali/Hide currency when no currency is set #6586

Merged
merged 3 commits into from
Jun 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/javascript/_common/base/currency_base.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const formatMoney = (currency_value, amount, exclude_currency, decimals = 0, min
return sign + (exclude_currency ? money : money + formatCurrency(currency_value));
};

const formatCurrency = currency => `<span class="symbols">&nbsp;${getCurrencyDisplayCode(currency)}</span>`; // defined in binary-style
const formatCurrency = currency => currency ? `<span class="symbols">&nbsp;${getCurrencyDisplayCode(currency)}</span>` : ''; // defined in binary-style

const addComma = (num, decimal_points, is_crypto) => {
let number = String(num || 0).replace(/,/g, '');
Expand Down