added toString method to value m.nanos
This commit is contained in:
parent
9064cb33a1
commit
c400078037
1 changed files with 2 additions and 2 deletions
|
@ -46,8 +46,8 @@ const request = {
|
||||||
};
|
};
|
||||||
|
|
||||||
function _moneyToString (m) {
|
function _moneyToString (m) {
|
||||||
m = m.toString();
|
|
||||||
return `${m.units}.${m.nanos.padStart(9,'0')} ${m.currency_code}`;
|
return `${m.units}.${m.nanos.toString().padStart(9,'0')} ${m.currency_code}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
client.getSupportedCurrencies({}, (err, response) => {
|
client.getSupportedCurrencies({}, (err, response) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue