diff --git a/src/components/SelectAccount/index.js b/src/components/SelectAccount/index.js index f6e0baac..af15bde5 100644 --- a/src/components/SelectAccount/index.js +++ b/src/components/SelectAccount/index.js @@ -22,12 +22,12 @@ const mapStateToProps = state => ({ const renderItem = a => ( - + {a.name} - + ) diff --git a/src/components/SelectAccount/stories.js b/src/components/SelectAccount/stories.js index b93c15d8..41420fda 100644 --- a/src/components/SelectAccount/stories.js +++ b/src/components/SelectAccount/stories.js @@ -14,7 +14,7 @@ const accounts = [...Array(20)].map(() => ({ id: chance.string(), address: chance.string(), addresses: [], - balance: chance.floating({ min: 0, max: 20 }), + balance: chance.integer({ min: 10000000, max: 2000000000 }), balanceByDay: {}, coinType: 0, currency: getCurrencyByCoinType(0), diff --git a/src/components/base/Select/index.js b/src/components/base/Select/index.js index a1c3e43e..a71f83da 100644 --- a/src/components/base/Select/index.js +++ b/src/components/base/Select/index.js @@ -161,7 +161,7 @@ class Select extends PureComponent { innerRef={n => (this._children[i] = n)} {...getItemProps({ item })} > - + {renderItem ? ( renderItem(item) @@ -171,7 +171,7 @@ class Select extends PureComponent { - +