mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
remove buyButtonDeligator function
This commit is contained in:
parent
e543050868
commit
7a8496f9da
@ -262,15 +262,3 @@ AccountDetailScreen.prototype.transactionList = function () {
|
|||||||
AccountDetailScreen.prototype.requestAccountExport = function () {
|
AccountDetailScreen.prototype.requestAccountExport = function () {
|
||||||
this.props.dispatch(actions.requestExportAccount())
|
this.props.dispatch(actions.requestExportAccount())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
AccountDetailScreen.prototype.buyButtonDeligator = function () {
|
|
||||||
var props = this.props
|
|
||||||
var selected = props.address || Object.keys(props.accounts)[0]
|
|
||||||
|
|
||||||
if (this.props.accountDetail.subview === 'buyForm') {
|
|
||||||
props.dispatch(actions.backToAccountDetail(props.address))
|
|
||||||
} else {
|
|
||||||
props.dispatch(actions.buyEthView(selected))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user