diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2020-04-13 15:35:44 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2020-04-13 15:35:44 -0500 |
| commit | 6a889bdaa19bd6ef66165d18d10f82c2c5ed6fa0 (patch) | |
| tree | 4c89a95703d33dce1081856efca18d0741f52f62 /js | |
| parent | 042400b83fdea6c18ea8a7970cb0a8af2070c03a (diff) | |
| parent | b5fafb55c9ba3e3e1c8122b066202784f1339691 (diff) | |
| download | monzero-gui-6a889bdaa19bd6ef66165d18d10f82c2c5ed6fa0.tar.gz monzero-gui-6a889bdaa19bd6ef66165d18d10f82c2c5ed6fa0.tar.xz monzero-gui-6a889bdaa19bd6ef66165d18d10f82c2c5ed6fa0.zip | |
Merge pull request #2739
b5fafb5 Transfer: display estimated transaction fee, requires #6302 (xiphon)
Diffstat (limited to 'js')
| -rw-r--r-- | js/Utils.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/Utils.js b/js/Utils.js index f32f80a9..51395dce 100644 --- a/js/Utils.js +++ b/js/Utils.js @@ -133,3 +133,7 @@ function capitalize(s){ if (typeof s !== 'string') return '' return s.charAt(0).toUpperCase() + s.slice(1) } + +function removeTrailingZeros(value) { + return (value + '').replace(/(\.\d*[1-9])0+$/, '$1'); +} |
