updated testnet contract and sort contributors
This commit is contained in:
parent
20b4ff0351
commit
ba1f4ad18c
|
@ -160,6 +160,12 @@ class Home extends React.Component {
|
|||
|
||||
const maxAllocation = selectedContributors.length ? currentContributor.allocation / selectedContributors.length : 0;
|
||||
|
||||
const orderedContributors = contributorList.sort((a,b) => {
|
||||
if (a.label < b.label) return -1;
|
||||
if (a.label > b.label) return 1;
|
||||
return 0;
|
||||
});
|
||||
|
||||
return (<Fragment>
|
||||
{errorMsg && <Alert variant="danger">{errorMsg}</Alert>}
|
||||
{busy && <p>Working...</p>}
|
||||
|
@ -176,7 +182,7 @@ class Home extends React.Component {
|
|||
isMulti
|
||||
value={selectedContributors}
|
||||
onChange={this.handleContributorSelection}
|
||||
options={contributorList}
|
||||
options={orderedContributors}
|
||||
placeholder="Choose Contributor(s)..."
|
||||
isDisabled={busy}
|
||||
className="mb-2"
|
||||
|
|
|
@ -8,7 +8,7 @@ function getContributors () {
|
|||
return addresses;
|
||||
}
|
||||
|
||||
const OG_IPFS_HASH = '0x516d524548424e576f4a4378384b447a37504241546876386d7278475257696d627a715a734c3861447a664c4857';
|
||||
const OG_IPFS_HASH = '0x516d617555364a6b66767038756a44444259784b3553797a58325831635842616642344259584e6838514d4b6e31';
|
||||
|
||||
module.exports = {
|
||||
// default applies to all environments
|
||||
|
@ -170,7 +170,7 @@ module.exports = {
|
|||
"address": "0xc55cF4B03948D7EBc8b9E8BAD92643703811d162"
|
||||
},
|
||||
"Meritocracy": {
|
||||
"address": "0xf40f9418D8236f373eB27f91Cc1a01739EB8c301"
|
||||
"address": "0xcde3ca6c59f0316e9c041ee170087d660d35518d"
|
||||
}
|
||||
},
|
||||
deployment: {
|
||||
|
|
Loading…
Reference in New Issue