Skip to content

Commit

Permalink
refactor(Chat.vue): replace hardcoded fee with a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
bludnic committed Nov 2, 2023
1 parent 89df240 commit 605d997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Chat/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ import { detect } from 'detect-browser'
import Visibility from 'visibilityjs'
import copyToClipboard from 'copy-to-clipboard'
import { Cryptos } from '@/lib/constants'
import { Cryptos, Fees } from '@/lib/constants'
import EmojiPicker from '@/components/EmojiPicker.vue'
import {
Expand Down Expand Up @@ -321,7 +321,7 @@ function validateMessage(message) {
return validationErrors.emptyMessage
}
if (this.$store.state.balance < 0.001) {
if (this.$store.state.balance < Fees.NOT_ADM_TRANSFER) {
if (this.$store.getters.isAccountNew()) {
return validationErrors.notEnoughFundsNewAccount
} else {
Expand Down

0 comments on commit 605d997

Please sign in to comment.