diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-09-09 01:57:10 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-09-09 01:57:10 +0800 |
commit | c3dbcb5b02a54bd3772fb768c1b28f2c94a74e58 (patch) | |
tree | 54585550fcb066a9f616a94fa86ddbe0f95f05a7 | |
parent | 2ca58f5bf7767b18583e49b5acb3ff35c95b617f (diff) | |
download | tangerine-wallet-browser-c3dbcb5b02a54bd3772fb768c1b28f2c94a74e58.tar tangerine-wallet-browser-c3dbcb5b02a54bd3772fb768c1b28f2c94a74e58.tar.gz tangerine-wallet-browser-c3dbcb5b02a54bd3772fb768c1b28f2c94a74e58.tar.bz2 tangerine-wallet-browser-c3dbcb5b02a54bd3772fb768c1b28f2c94a74e58.tar.lz tangerine-wallet-browser-c3dbcb5b02a54bd3772fb768c1b28f2c94a74e58.tar.xz tangerine-wallet-browser-c3dbcb5b02a54bd3772fb768c1b28f2c94a74e58.tar.zst tangerine-wallet-browser-c3dbcb5b02a54bd3772fb768c1b28f2c94a74e58.zip |
Fix double tooltip
-rw-r--r-- | ui/app/components/fiat-value.js | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/ui/app/components/fiat-value.js b/ui/app/components/fiat-value.js index 406dcf23f..a5c36e5cb 100644 --- a/ui/app/components/fiat-value.js +++ b/ui/app/components/fiat-value.js @@ -3,7 +3,6 @@ const h = require('react-hyperscript') const inherits = require('util').inherits const connect = require('react-redux').connect const formatBalance = require('../util').formatBalance -const Tooltip = require('./tooltip') module.exports = connect(mapStateToProps)(FiatValue) @@ -28,7 +27,6 @@ FiatValue.prototype.render = function () { var splitBalance = value.split(' ') if (props.conversionRate !== 0) { - fiatTooltipNumber = Number(splitBalance[0]) * props.conversionRate fiatDisplayNumber = fiatTooltipNumber.toFixed(2) } else { fiatDisplayNumber = 'N/A' @@ -37,14 +35,7 @@ FiatValue.prototype.render = function () { var fiatSuffix = props.currentFiat - return ( - h(Tooltip, { - position: 'bottom', - title: `${fiatTooltipNumber} ${fiatSuffix}`, - }, [ - fiatDisplay(fiatDisplayNumber, fiatSuffix), - ]) - ) + return fiatDisplay(fiatDisplayNumber, fiatSuffix) } function fiatDisplay (fiatDisplayNumber, fiatSuffix) { |