From c3dbcb5b02a54bd3772fb768c1b28f2c94a74e58 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Thu, 8 Sep 2016 10:57:10 -0700 Subject: [PATCH] Fix double tooltip --- ui/app/components/fiat-value.js | 11 +---------- 1 file changed, 1 insertion(+), 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) {