Skip to content

Commit

Permalink
chore: update multisig account not found hint
Browse files Browse the repository at this point in the history
  • Loading branch information
vzxh committed Mar 9, 2022
1 parent 29f42ec commit d3bbb94
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,5 +182,5 @@
"network not supported": "This network is not currently supported",
"remark": "Remark",
"endpoint": "Endpoint",
"multisig account not exist": "Multisig account not found, please create it first"
"multisig account not exist": "Multi-signature account “{{account}}” Not found in current network"
}
2 changes: 1 addition & 1 deletion public/locales/zh/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,5 +180,5 @@
"network not supported": "暂不支持该网络",
"remark": "备注",
"endpoint": "节点",
"multisig account not exist": "未找到本地的多签账号配置"
"multisig account not exist": "未在当前网络找到多签账号:“{{account}}”"
}
4 changes: 2 additions & 2 deletions src/pages/Extrinsic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function Extrinsic() {

if (!localMultisig) {
if (isCustomNetwork) {
message.warn(t('multisig account not exist'));
message.warn(t('multisig account not exist', { account: ss58Account }));
history.push('/' + history.location.hash);
} else {
fetchMultisigDetail({ variables: { account: ss58Account }, skipCache: true });
Expand Down Expand Up @@ -84,7 +84,7 @@ export function Extrinsic() {

setMultisig(keyring.getAccount(ss58Account));
} else if (!localMultisig && multisigDetail && multisigDetail.multisigAccount === null) {
message.warn(t('multisig account not exist'));
message.warn(t('multisig account not exist', { account: ss58Account }));
history.push('/' + history.location.hash);
}
}, [ss58Account, multisigDetail, api, network, history, t]);
Expand Down

0 comments on commit d3bbb94

Please sign in to comment.