aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-11 07:55:59 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-11 07:55:59 +0800
commitc8e7d225ca4bc9774b4f902c01668873cbdce6a1 (patch)
tree995cb7993f493e710aeecd44b43af092dccba29d /packages
parent0aa7bfab0d62a11e84b81044e6af6e2c5ec6b981 (diff)
downloaddexon-0x-contracts-c8e7d225ca4bc9774b4f902c01668873cbdce6a1.tar
dexon-0x-contracts-c8e7d225ca4bc9774b4f902c01668873cbdce6a1.tar.gz
dexon-0x-contracts-c8e7d225ca4bc9774b4f902c01668873cbdce6a1.tar.bz2
dexon-0x-contracts-c8e7d225ca4bc9774b4f902c01668873cbdce6a1.tar.lz
dexon-0x-contracts-c8e7d225ca4bc9774b4f902c01668873cbdce6a1.tar.xz
dexon-0x-contracts-c8e7d225ca4bc9774b4f902c01668873cbdce6a1.tar.zst
dexon-0x-contracts-c8e7d225ca4bc9774b4f902c01668873cbdce6a1.zip
Be more explicit with falsiness
Diffstat (limited to 'packages')
-rw-r--r--packages/instant/src/components/amount_input.tsx2
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"
/>