Skip to content

Commit

Permalink
🚸 Show LIKE needed when insufficient fund (#459)
Browse files Browse the repository at this point in the history
* 🚸 Show LIKE needed when insufficient fund

* Update locales/en.json

Co-authored-by: Ng Wing Tat, David <i@nwt.hk>

---------

Co-authored-by: Ng Wing Tat, David <i@nwt.hk>
  • Loading branch information
williamchong and nwingt committed Apr 8, 2024
1 parent e8fca6f commit 784fad0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/Alerts/SignFailed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default class SignFailed extends Vue {
get errorAlert() {
switch (this.errorType) {
case ErrorType.INSUFFICIENT_BALANCE:
return 'IscnRegisterForm.error.insufficient'
return 'IscnRegisterForm.error.insufficient_with_buy'
case ErrorType.USER_NOT_ISCN_OWNER:
return 'IscnRegisterForm.error.notIscnOwner'
Expand Down
2 changes: 1 addition & 1 deletion components/IscnRegisterForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ export default class IscnRegisterForm extends Vue {
get errorMsg() {
switch (this.error) {
case 'INSUFFICIENT_BALANCE':
return this.$t('IscnRegisterForm.error.insufficient')
return this.$t('IscnRegisterForm.error.insufficient_with_like', { like: this.totalFee })
case 'MISSING_SIGNER':
return this.$t('IscnRegisterForm.error.missingSigner')
default:
Expand Down
2 changes: 1 addition & 1 deletion components/IscnUploadForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ export default class IscnUploadForm extends Vue {
get errorMsg() {
switch (this.error) {
case 'INSUFFICIENT_BALANCE':
return this.$t('IscnRegisterForm.error.insufficient')
return this.$t('IscnRegisterForm.error.insufficient_with_like', { like: this.arweaveFee })
case 'MISSING_SIGNER':
return this.$t('IscnRegisterForm.error.missingSigner')
default:
Expand Down
3 changes: 2 additions & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@
"IscnRegisterForm.error.buy": "Buy LikeCoin",
"IscnRegisterForm.error.descriptionIsEmpty": "Please enter the ISCN description",
"IscnRegisterForm.error.faucet": "Get faucet",
"IscnRegisterForm.error.insufficient": "Oops, Insufficient Balance. {buy} ",
"IscnRegisterForm.error.insufficient_with_buy": "Oops, Insufficient balance. {buy} ",
"IscnRegisterForm.error.insufficient_with_like": "Oops, Insufficient balance, requires {like} ",
"IscnRegisterForm.error.missingSigner": "Missing Signer. Please connect your wallet.",
"IscnRegisterForm.error.notIscnOwner": "Oops, User is not the current ISCN owner. {login}",
"IscnRegisterForm.error.reLogIn": "Change Wallet",
Expand Down

0 comments on commit 784fad0

Please sign in to comment.