Files
kredits-web/app/controllers/signup/eth-account.js
T

24 lines
437 B
JavaScript

import Controller from '@ember/controller';
import { computed } from '@ember/object';
import { not } from '@ember/object/computed';
import { isAddress } from 'web3-utils';
export default Controller.extend({
ethAddress: null,
isValidEthAccount: computed('ethAddress', function() {
return isAddress(this.ethAddress);
}),
signupButtonDisabled: not('isValidEthAccount'),
actions: {
completeSignup() {
}
}
});