Skip to content

Commit

Permalink
fix: disable "create account" for worbli wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga authored and aaroncox committed Jan 29, 2019
1 parent fef0ab4 commit bc71b78
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/shared/containers/Tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,12 @@ class ToolsContainer extends Component<Props> {
}
}
}
// Disable "create new account" on specific chains (Worbli)
const disableCreateAccount = (connection.chainId === '73647cde120091e0a4b85bced2f3cfdb3041e266cbbe95cee59b73235a1b3b6f');
if (pane.name === 'create_account' && disableCreateAccount) {
return false;
}

return (
!walletMode
|| (walletTemp && pane.modes.includes('temp'))
Expand Down

0 comments on commit bc71b78

Please sign in to comment.