X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Ffeatures%2Fshared%2Fcomponents%2FGasField%2FGasField.jsx;fp=src%2Ffeatures%2Fshared%2Fcomponents%2FGasField%2FGasField.jsx;h=0480aff643bfa44ac9376bd5e30049d422585fed;hb=c1f1b2cd3d7d0ebf133ebdd30ae89ce49d63bdf9;hp=4037aaa6a83ca521ba3b7e246b812f46d0ae8036;hpb=54bbefa2382ea18fa8faca879b46847315be1f8a;p=bytom%2Fbytom-electron.git diff --git a/src/features/shared/components/GasField/GasField.jsx b/src/features/shared/components/GasField/GasField.jsx index 4037aaa..0480aff 100644 --- a/src/features/shared/components/GasField/GasField.jsx +++ b/src/features/shared/components/GasField/GasField.jsx @@ -20,21 +20,20 @@ class GasField extends React.Component { render() { const fieldProps = pick(this.props.fieldProps, TEXT_FIELD_PROPS) const {touched, error} = this.props.fieldProps + const chainGas = this.props.chainGas || 0 - return( -
- {normalizeBTMAmountUnit(btmID, fieldProps.value* this.props.gas, this.props.btmAmountUnit)} - + return
+ {normalizeBTMAmountUnit(btmID, ( chainGas + fieldProps.value * this.props.gas ), this.props.btmAmountUnit)} + - {touched && error && {error}} - {this.props.hint && {this.props.hint}} -
- ) + {touched && error && {error}} + {this.props.hint && {this.props.hint}} +
} }