Skip to content

Commit

Permalink
[DDW-330] Remove unused error message
Browse files Browse the repository at this point in the history
  • Loading branch information
thedanheller committed Aug 3, 2020
1 parent e45ef29 commit f89648d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 36 deletions.
Expand Up @@ -59,14 +59,6 @@ const messages = defineMessages({
description:
'errorMinDelegationFunds Error Label on the delegation setup "choose wallet" step dialog.',
},
errorMinDelegationFundsHasRewards: {
id:
'staking.delegationSetup.chooseWallet.step.dialog.errorMinDelegationFundsHasRewards',
defaultMessage:
'!!!This wallet does not contain the minimum amount of {minDelegationFunds} ADA which is required for delegation to be available.',
description:
'errorMinDelegationFundsHasRewards Error Label on the delegation setup "choose wallet" step dialog.',
},
errorMinDelegationFundsRewardsOnly: {
id:
'staking.delegationSetup.chooseWallet.step.dialog.errorMinDelegationFundsRewardsOnly',
Expand Down Expand Up @@ -155,11 +147,6 @@ export default class DelegationStepsChooseWalletDialog extends Component<
// Wallet only has Reward balance
else if (!amount.isZero() && amount.equals(reward))
errorMessage = messages.errorMinDelegationFundsRewardsOnly;
// Wallet balance - rewards < min delegation funds
/*
else if (!reward.isZero())
errorMessage = messages.errorMinDelegationFundsHasRewards;
*/
// Wallet balance < min delegation funds
else errorMessage = messages.errorMinDelegationFunds;
}
Expand Down
28 changes: 7 additions & 21 deletions source/renderer/app/i18n/locales/defaultMessages.json
Expand Up @@ -3550,60 +3550,46 @@
"line": 54
}
},
{
"defaultMessage": "!!!This wallet does not contain the minimum amount of {minDelegationFunds} ADA which is required for delegation to be available.",
"description": "errorMinDelegationFundsHasRewards Error Label on the delegation setup \"choose wallet\" step dialog.",
"end": {
"column": 3,
"line": 69
},
"file": "source/renderer/app/components/staking/delegation-setup-wizard/DelegationStepsChooseWalletDialog.js",
"id": "staking.delegationSetup.chooseWallet.step.dialog.errorMinDelegationFundsHasRewards",
"start": {
"column": 37,
"line": 62
}
},
{
"defaultMessage": "!!!This wallet contains only rewards balances so it cannot be delegated.",
"description": "errorMinDelegationFundsRewardsOnly Error Label on the delegation setup \"choose wallet\" step dialog.",
"end": {
"column": 3,
"line": 77
"line": 69
},
"file": "source/renderer/app/components/staking/delegation-setup-wizard/DelegationStepsChooseWalletDialog.js",
"id": "staking.delegationSetup.chooseWallet.step.dialog.errorMinDelegationFundsRewardsOnly",
"start": {
"column": 38,
"line": 70
"line": 62
}
},
{
"defaultMessage": "!!!This wallet can’t be used for delegation while it’s being synced.",
"description": "RestoringWallet Error Label on the delegation setup \"choose wallet\" step dialog.",
"end": {
"column": 3,
"line": 84
"line": 76
},
"file": "source/renderer/app/components/staking/delegation-setup-wizard/DelegationStepsChooseWalletDialog.js",
"id": "staking.delegationSetup.chooseWallet.step.dialog.errorRestoringWallet",
"start": {
"column": 24,
"line": 78
"line": 70
}
},
{
"defaultMessage": "!!!Continue",
"description": "Label for continue button on the delegation setup \"choose wallet\" step dialog.",
"end": {
"column": 3,
"line": 90
"line": 82
},
"file": "source/renderer/app/components/staking/delegation-setup-wizard/DelegationStepsChooseWalletDialog.js",
"id": "staking.delegationSetup.chooseWallet.step.dialog.continueButtonLabel",
"start": {
"column": 23,
"line": 85
"line": 77
}
}
],
Expand Down Expand Up @@ -13912,7 +13898,7 @@
"line": 78
},
"file": "storybook/stories/common/Widgets.stories.js",
"id": "manualUpdate.button.label",
"id": "appUpdate.manualUpdateOverlay.button.label",
"start": {
"column": 22,
"line": 74
Expand Down
2 changes: 1 addition & 1 deletion source/renderer/app/i18n/locales/en-US.json
Expand Up @@ -17,6 +17,7 @@
"api.errors.invalidAddress": "Please enter a valid address.",
"api.errors.nothingToMigrate": "Funds cannot be transferred from this wallet because it contains some unspent transaction outputs (UTXOs), with amounts of ada that are too small to be migrated.",
"api.errors.utxoTooSmall": "Invalid transaction.",
"appUpdate.manualUpdateOverlay.button.label": "!!!Follow instructions and manually update",
"automaticUpdate.accept.button.label": "Restart Daedalus and Update",
"automaticUpdate.description1": "You are currently running Daedalus <b>{currentAppVersion}</b> and <b>{nextUpdateVersion}</b> is available.",
"automaticUpdate.description2": "Would you like to install the update? If choose to postpone, the update will be installed automatically on the next Daedalus launch.",
Expand Down Expand Up @@ -336,7 +337,6 @@
"staking.delegationSetup.chooseWallet.step.dialog.continueButtonLabel": "Continue",
"staking.delegationSetup.chooseWallet.step.dialog.description": "Choose a wallet that holds the funds you want to delegate. The selected wallet must contain a <span>minimum amount of {minDelegationFunds} ADA</span> for delegation to be an option.",
"staking.delegationSetup.chooseWallet.step.dialog.errorMinDelegationFunds": "This wallet does not contain the minimum amount of {minDelegationFunds} ADA which is required for delegation to be available. Please select a wallet with <span>a minimum amount of {minDelegationFunds} ADA</span> and click continue.",
"staking.delegationSetup.chooseWallet.step.dialog.errorMinDelegationFundsHasRewards": "This wallet does not contain the minimum amount of {minDelegationFunds} ADA which is required for delegation to be available. Rewards cannot be used for this purpose. Please select a wallet with <span>a minimum amount of {minDelegationFunds} ADA</span> and click continue.",
"staking.delegationSetup.chooseWallet.step.dialog.errorMinDelegationFundsRewardsOnly": "This wallet contains only rewards balances so it cannot be delegated.",
"staking.delegationSetup.chooseWallet.step.dialog.errorRestoringWallet": "This wallet can’t be used for delegation while it’s being synced.",
"staking.delegationSetup.chooseWallet.step.dialog.selectWalletInputLabel": "Wallet",
Expand Down
2 changes: 1 addition & 1 deletion source/renderer/app/i18n/locales/ja-JP.json
Expand Up @@ -17,6 +17,7 @@
"api.errors.invalidAddress": "有効なアドレスを入力してください。",
"api.errors.nothingToMigrate": "このウォレットに保有されている未使用トランザクションアウトプット(UTXO)の一部に、移行するために十分なADAが入っていないため、このウォレットから資金を移すことはできません。",
"api.errors.utxoTooSmall": "無効なトランザクションです。",
"appUpdate.manualUpdateOverlay.button.label": "!!!Follow instructions and manually update",
"automaticUpdate.accept.button.label": "Daedalusを再起動して更新する",
"automaticUpdate.description1": "現在実行中のDaedalus <b>{currentAppVersion}</b>は<b>{nextUpdateVersion}</b>に更新できます。",
"automaticUpdate.description2": "今すぐ最新版をインストールしますか。更新を保留すると、Daedalusを次回起動する時に自動的にインストールされます。",
Expand Down Expand Up @@ -336,7 +337,6 @@
"staking.delegationSetup.chooseWallet.step.dialog.continueButtonLabel": "続ける",
"staking.delegationSetup.chooseWallet.step.dialog.description": "このウォレットには委任を有効にするために必要な最低額{minDelegationFunds}ADAが入っていません。<span>{minDelegationFunds}ADA以上</span>入っているウォレットを選択して、[続ける]をクリックしてください。",
"staking.delegationSetup.chooseWallet.step.dialog.errorMinDelegationFunds": "選択されたウォレットには委任を有効にするために必要な最低額{minDelegationFunds}ADAが入っていません。<span>{minDelegationFunds}ADA以上</span>入っているウォレットを選択して、[続ける]をクリックしてください。",
"staking.delegationSetup.chooseWallet.step.dialog.errorMinDelegationFundsHasRewards": "このウォレットには委任を有効にするために必要な最低額{minDelegationFunds}ADAが入っていません。Rewards cannot be used for this purpose. <span>{minDelegationFunds}ADA以上</span><span>{minDelegationFunds}ADA以上</span>入っているウォレットを選択して、[続ける]をクリックしてください。",
"staking.delegationSetup.chooseWallet.step.dialog.errorMinDelegationFundsRewardsOnly": "このウォレットに含まれているのは報酬残高のみであるため、委任はできません。",
"staking.delegationSetup.chooseWallet.step.dialog.errorRestoringWallet": "このウォレットは現在同期中のため委任に使用することができません。",
"staking.delegationSetup.chooseWallet.step.dialog.selectWalletInputLabel": "ウォレット",
Expand Down

0 comments on commit f89648d

Please sign in to comment.