Skip to content

Commit

Permalink
Merge branch 'canary' into fix/reactivity-issue-after-user-gets-enoug…
Browse files Browse the repository at this point in the history
…h-mana
  • Loading branch information
cpl121 authored May 17, 2024
2 parents 2be6e0b + 5104d5e commit cb15944
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions packages/desktop/components/ManaBox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,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
8 changes: 5 additions & 3 deletions packages/desktop/components/WalletSummary.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
import { activeProfile } from '@core/profile'
$: fomattedNetworkName = $nodeInfoNetworkName
.split(' ')
.map((word) => word[0].toUpperCase() + word.substring(1))
.join(' ')
? $nodeInfoNetworkName
.split(' ')
.map((word) => word[0].toUpperCase() + word.substring(1))
.join(' ')
: ''
$: ({ baseCoin, mana } = $selectedWalletAssets[$activeProfile?.network.id])
</script>
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 cb15944

Please sign in to comment.