fix bugs & linting issues

This commit is contained in:
Jannis R 2016-12-08 11:55:51 +01:00
parent 162420f4c2
commit dfc445b6d6
No known key found for this signature in database
GPG Key ID: 0FE83946296A88A5
4 changed files with 5 additions and 7 deletions

View File

@ -53,7 +53,7 @@ export default class EmailVerificationStore extends VerificationStore {
}
constructor (api, account, isTestnet) {
return super(api, account, isTestnet, 'emailverification');
super(api, account, isTestnet, 'emailverification3');
}
requestValues = () => [ sha3(this.email) ]
@ -62,8 +62,6 @@ export default class EmailVerificationStore extends VerificationStore {
this.email = email;
}
requestValues = () => [ sha3(this.email) ]
requestCode = () => {
const { email, account, isTestnet } = this;
return postToServer({ email, address: account }, isTestnet);

View File

@ -52,7 +52,7 @@ export default class SMSVerificationStore extends VerificationStore {
}
constructor (api, account, isTestnet) {
return super(api, account, isTestnet, 'smsverification');
super(api, account, isTestnet, 'smsverification');
}
@action setNumber = (number) => {

View File

@ -52,7 +52,7 @@ export default class VerificationStore {
this.isTestnet = isTestnet;
this.step = LOADING;
Contracts.create(api).registry.getContract(name)
Contracts.get().registry.getContract(name)
.then((contract) => {
this.contract = contract;
this.load();

View File

@ -173,7 +173,7 @@ export default class Verification extends Component {
const {
step,
fee, number, isNumberValid, isVerified, hasRequested,
fee, isVerified, hasRequested,
requestTx, isCodeValid, confirmationTx,
setCode
} = this.props.store;
@ -187,7 +187,7 @@ export default class Verification extends Component {
case 2:
const { setConsentGiven } = this.props.store;
const fields = []
const fields = [];
if (method === 'sms') {
fields.push({
key: 'number',