aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/app/send.js2
-rw-r--r--ui/app/util.js7
2 files changed, 7 insertions, 2 deletions
diff --git a/ui/app/send.js b/ui/app/send.js
index 540d85382..06ea199f4 100644
--- a/ui/app/send.js
+++ b/ui/app/send.js
@@ -173,7 +173,7 @@ SendTransactionScreen.prototype.render = function () {
marginBottom: 16,
},
}, [
- 'Tranasactional Data (optional)',
+ 'Transactional Data (optional)',
]),
// 'data' field
diff --git a/ui/app/util.js b/ui/app/util.js
index a08006077..04ebcecdb 100644
--- a/ui/app/util.js
+++ b/ui/app/util.js
@@ -123,7 +123,12 @@ function generateBalanceObject (formattedBalance, decimalsToKeep = 1) {
var shortBalance = shortenBalance(balance, decimalsToKeep)
if (beforeDecimal === '0' && afterDecimal.substr(0, 5) === '00000') {
- balance = '<1.0e-5'
+ // eslint-disable-next-line eqeqeq
+ if (afterDecimal == 0) {
+ balance = '0'
+ } else {
+ balance = '<1.0e-5'
+ }
} else if (beforeDecimal !== '0') {
balance = `${beforeDecimal}.${afterDecimal.slice(0, decimalsToKeep)}`
}