From c4162bc55d2cf93ba2c8bf98e5fe6c7217c4142e Mon Sep 17 00:00:00 2001 From: wowario Date: Thu, 21 May 2020 11:48:03 +0300 Subject: [PATCH] fix bubbles --- .../components/Landing/components/WarioPassword.vue | 13 ++++++------- src/renderer/components/Pages/WarioTxs.vue | 13 ++++++------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/renderer/components/Landing/components/WarioPassword.vue b/src/renderer/components/Landing/components/WarioPassword.vue index e79986b..c95eded 100644 --- a/src/renderer/components/Landing/components/WarioPassword.vue +++ b/src/renderer/components/Landing/components/WarioPassword.vue @@ -30,18 +30,17 @@ return (this.$store.getters.usd_rate / 1000) * this.$store.getters.wallet.balance; }, bubble_img() { - let rate = this.$store.getters.usd_rate; - let usd = (rate / 1000) * this.$store.getters.wallet.balance; + let bal = this.$store.getters.wallet.balance; - if(usd < 1){ + if(bal < 1){ return this.path_bubble(0); - } else if(usd < 100){ + } else if(bal < 100){ return this.path_bubble(1); - } else if(usd < 500){ + } else if(bal < 1000){ return this.path_bubble(2); - } else if(usd < 1000){ + } else if(bal < 2000){ return this.path_bubble(3); - } else if(usd < 1000){ + } else if(bal > 2000){ return this.path_bubble(4); } } diff --git a/src/renderer/components/Pages/WarioTxs.vue b/src/renderer/components/Pages/WarioTxs.vue index f84938f..9ab5dff 100644 --- a/src/renderer/components/Pages/WarioTxs.vue +++ b/src/renderer/components/Pages/WarioTxs.vue @@ -47,18 +47,17 @@ return (this.$store.getters.usd_rate / 1000) * this.$store.getters.wallet.balance; }, bubble_img() { - let rate = this.$store.getters.usd_rate; - let usd = (rate / 1000) * this.$store.getters.wallet.balance; + let bal = this.$store.getters.wallet.balance; - if(usd < 1){ + if(bal < 1){ return this.path_bubble(0); - } else if(usd < 100){ + } else if(bal < 100){ return this.path_bubble(1); - } else if(usd < 500){ + } else if(bal < 1000){ return this.path_bubble(2); - } else if(usd < 1000){ + } else if(bal < 2000){ return this.path_bubble(3); - } else if(usd < 1000){ + } else if(bal > 2000){ return this.path_bubble(4); } }