diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-10-11 07:55:59 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-10-11 07:55:59 +0800 |
commit | c8e7d225ca4bc9774b4f902c01668873cbdce6a1 (patch) | |
tree | 995cb7993f493e710aeecd44b43af092dccba29d /packages/instant | |
parent | 0aa7bfab0d62a11e84b81044e6af6e2c5ec6b981 (diff) | |
download | dexon-0x-contracts-c8e7d225ca4bc9774b4f902c01668873cbdce6a1.tar.gz dexon-0x-contracts-c8e7d225ca4bc9774b4f902c01668873cbdce6a1.tar.zst dexon-0x-contracts-c8e7d225ca4bc9774b4f902c01668873cbdce6a1.zip |
Be more explicit with falsiness
Diffstat (limited to 'packages/instant')
-rw-r--r-- | packages/instant/src/components/amount_input.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/instant/src/components/amount_input.tsx b/packages/instant/src/components/amount_input.tsx index 12cb9a48c..3f16869b4 100644 --- a/packages/instant/src/components/amount_input.tsx +++ b/packages/instant/src/components/amount_input.tsx @@ -22,7 +22,7 @@ export class AmountInput extends React.Component<AmountInputProps> { fontColor={fontColor} fontSize={fontSize} onChange={this._handleChange} - value={value ? value.toString() : ''} + value={!_.isUndefined(value) ? value.toString() : ''} placeholder="0.00" width="2em" /> |