Fix isExternal check

This commit is contained in:
Jaco Greeff 2019-09-18 13:51:34 +02:00
parent e8d87e8c17
commit f742f24e0a

View File

@ -244,7 +244,11 @@ class Signer extends React.PureComponent<Props, State> {
private renderUnlock (): React.ReactNode {
const { currentItem, isSendable, password, unlockError } = this.state;
if (!isSendable || !currentItem || currentItem.isUnsigned || this.isExternal(currentItem.accountId)) {
const { isExternal } = currentItem
? this.isExternal(currentItem.accountId)
: { isExternal: false };
if (!isSendable || !currentItem || currentItem.isUnsigned || isExternal) {
return null;
}