Skip to content

Commit

Permalink
multisig: error when adding existing key
Browse files Browse the repository at this point in the history
  • Loading branch information
rithvikvibhu committed Jan 25, 2023
1 parent 8b07f70 commit 54fea93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/pages/Multisig/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,11 @@ class KeyInputRow extends Component {
return;
}

if (walletKeys.includes(accountKey)) {
this.props.showError(t('multisigAccountKeyExists'));
return;
}

try {
// N - 1 (for us) - num(other added keys as of now)
const remainingKeys = (walletN - 1 - walletKeys.length);
Expand Down
1 change: 1 addition & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@
"me": "me",
"miscellaneous": "Miscellaneous",
"multisigAccountKey": "Account Key (xpub)",
"multisigAccountKeyExists": "This account key has already been added.",
"multisigAccountKeyInvalid": "Invalid account key.",
"multisigActions": "Actions",
"multisigLoadTx": "Load Transaction",
Expand Down

0 comments on commit 54fea93

Please sign in to comment.