Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Dec 13, 2023
1 parent 5b71309 commit 02b0da3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/features/collectables/AssertLocationScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,9 @@ const AssertLocationScreen = () => {
numLocationChanges >= maker.locationNonceLimit
if (isPayer && insufficientMyDcBal) {
throw new Error(
`Assertion costs $${
requiredDc.toNumber() / 100000
}. You do not have enough HNT or DC.`,
t('assertLocationScreen.error.insufficientFunds', {
usd: requiredDc.toNumber() / 100000,
}),
)
}
if (isPayer) {
Expand Down
5 changes: 5 additions & 0 deletions src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,11 @@ export default {
title: 'Succesfully Asserted Location!',
message: 'The location was succesfully submitted to the blockchain',
},
error: {
insufficientFunds:
// eslint-disable-next-line no-template-curly-in-string
'Assertion costs ${{usd}}. You do not have enough HNT or DC.',
},
},
antennaSetupScreen: {
title: 'Antenna Setup',
Expand Down

0 comments on commit 02b0da3

Please sign in to comment.