Skip to content

Commit

Permalink
Fix: add error when cannot allot (#8527)
Browse files Browse the repository at this point in the history
* fix: add error when cannot allotment

* fix: move error to manaboz
  • Loading branch information
evavirseda authored May 17, 2024
1 parent 84ed7b1 commit 5104d5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
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')) {
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

0 comments on commit 5104d5e

Please sign in to comment.