Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: add error when cannot allotment #8527

Merged
merged 2 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/desktop/components/ManaBox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@
estimatedManaCost = undefined
errorMessage = localize('general.insufficientManaGeneration')
}
if (transactionInfo.preparedTransactionError.message?.includes('cannot be moved off block issuer')) {
begonaalvarezd marked this conversation as resolved.
Show resolved Hide resolved
manaToGenerate = undefined
estimatedManaCost = undefined
errorMessage = localize('general.cannotMoveManaOffBlockIssuer')
}
} else if (transactionInfo?.preparedTransaction) {
errorMessage = ''
manaToGenerate = undefined
Expand Down
1 change: 1 addition & 0 deletions packages/shared/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1769,6 +1769,7 @@
"availableMana": "Available Mana",
"insufficientMana": "Generating Mana... Deficit: {mana}. Waiting time: {time}.",
"insufficientManaGeneration": "Your funds do not generate enough mana. Send funds to your wallet for faster mana generation.",
"cannotMoveManaOffBlockIssuer": "Mana can only be moved from block issuer accounts using manalocks.",
"secondsToRefreshManaCost": "Mana cost will be refreshed after {time, plural, one {# second} other {# seconds}}",
"mana": "Mana",
"delegationCreated": "Delegation created",
Expand Down
Loading