fix bugs & linting issues
This commit is contained in:
parent
162420f4c2
commit
dfc445b6d6
@ -53,7 +53,7 @@ export default class EmailVerificationStore extends VerificationStore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
constructor (api, account, isTestnet) {
|
constructor (api, account, isTestnet) {
|
||||||
return super(api, account, isTestnet, 'emailverification');
|
super(api, account, isTestnet, 'emailverification3');
|
||||||
}
|
}
|
||||||
|
|
||||||
requestValues = () => [ sha3(this.email) ]
|
requestValues = () => [ sha3(this.email) ]
|
||||||
@ -62,8 +62,6 @@ export default class EmailVerificationStore extends VerificationStore {
|
|||||||
this.email = email;
|
this.email = email;
|
||||||
}
|
}
|
||||||
|
|
||||||
requestValues = () => [ sha3(this.email) ]
|
|
||||||
|
|
||||||
requestCode = () => {
|
requestCode = () => {
|
||||||
const { email, account, isTestnet } = this;
|
const { email, account, isTestnet } = this;
|
||||||
return postToServer({ email, address: account }, isTestnet);
|
return postToServer({ email, address: account }, isTestnet);
|
||||||
|
@ -52,7 +52,7 @@ export default class SMSVerificationStore extends VerificationStore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
constructor (api, account, isTestnet) {
|
constructor (api, account, isTestnet) {
|
||||||
return super(api, account, isTestnet, 'smsverification');
|
super(api, account, isTestnet, 'smsverification');
|
||||||
}
|
}
|
||||||
|
|
||||||
@action setNumber = (number) => {
|
@action setNumber = (number) => {
|
||||||
|
@ -52,7 +52,7 @@ export default class VerificationStore {
|
|||||||
this.isTestnet = isTestnet;
|
this.isTestnet = isTestnet;
|
||||||
|
|
||||||
this.step = LOADING;
|
this.step = LOADING;
|
||||||
Contracts.create(api).registry.getContract(name)
|
Contracts.get().registry.getContract(name)
|
||||||
.then((contract) => {
|
.then((contract) => {
|
||||||
this.contract = contract;
|
this.contract = contract;
|
||||||
this.load();
|
this.load();
|
||||||
|
@ -173,7 +173,7 @@ export default class Verification extends Component {
|
|||||||
|
|
||||||
const {
|
const {
|
||||||
step,
|
step,
|
||||||
fee, number, isNumberValid, isVerified, hasRequested,
|
fee, isVerified, hasRequested,
|
||||||
requestTx, isCodeValid, confirmationTx,
|
requestTx, isCodeValid, confirmationTx,
|
||||||
setCode
|
setCode
|
||||||
} = this.props.store;
|
} = this.props.store;
|
||||||
@ -187,7 +187,7 @@ export default class Verification extends Component {
|
|||||||
case 2:
|
case 2:
|
||||||
const { setConsentGiven } = this.props.store;
|
const { setConsentGiven } = this.props.store;
|
||||||
|
|
||||||
const fields = []
|
const fields = [];
|
||||||
if (method === 'sms') {
|
if (method === 'sms') {
|
||||||
fields.push({
|
fields.push({
|
||||||
key: 'number',
|
key: 'number',
|
||||||
|
Loading…
Reference in New Issue
Block a user