Skip to content

Commit

Permalink
updating message sending fees
Browse files Browse the repository at this point in the history
  • Loading branch information
zyuhel committed Feb 14, 2018
1 parent a0a1bae commit 58fe039
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default {
},
send () {
this.$refs.messageField.$el.focus()
if (this.$store.state.balance < 0.005) {
if (this.$store.state.balance < 0.001) {
this.errorMessage('no_money')
return
}
Expand Down Expand Up @@ -172,7 +172,7 @@ export default {
}
window.feeCalcTimeout = setTimeout((function (self) {
return function () {
self.message_fee = Math.ceil(value.length / 255) * 0.005
self.message_fee = Math.ceil(value.length / 255) * 0.001
}
})(this), 1000)
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/NewChat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default {
this.$refs.chatSnackbar.open()
},
send () {
if (this.$store.state.balance < 0.005) {
if (this.$store.state.balance < 0.001) {
this.errorMessage('no_money')
return
}
Expand Down Expand Up @@ -63,7 +63,7 @@ export default {
},
watch: {
message: function (value) {
this.message_fee = Math.ceil(value.length / 255) * 0.005
this.message_fee = Math.ceil(value.length / 255) * 0.001
}
},
data () {
Expand Down

0 comments on commit 58fe039

Please sign in to comment.