fix bubbles

pull/26/head
wowario 4 years ago
parent f8d4ca62ad
commit c4162bc55d
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111

@ -30,18 +30,17 @@
return (this.$store.getters.usd_rate / 1000) * this.$store.getters.wallet.balance; return (this.$store.getters.usd_rate / 1000) * this.$store.getters.wallet.balance;
}, },
bubble_img() { bubble_img() {
let rate = this.$store.getters.usd_rate; let bal = this.$store.getters.wallet.balance;
let usd = (rate / 1000) * this.$store.getters.wallet.balance;
if(usd < 1){ if(bal < 1){
return this.path_bubble(0); return this.path_bubble(0);
} else if(usd < 100){ } else if(bal < 100){
return this.path_bubble(1); return this.path_bubble(1);
} else if(usd < 500){ } else if(bal < 1000){
return this.path_bubble(2); return this.path_bubble(2);
} else if(usd < 1000){ } else if(bal < 2000){
return this.path_bubble(3); return this.path_bubble(3);
} else if(usd < 1000){ } else if(bal > 2000){
return this.path_bubble(4); return this.path_bubble(4);
} }
} }

@ -47,18 +47,17 @@
return (this.$store.getters.usd_rate / 1000) * this.$store.getters.wallet.balance; return (this.$store.getters.usd_rate / 1000) * this.$store.getters.wallet.balance;
}, },
bubble_img() { bubble_img() {
let rate = this.$store.getters.usd_rate; let bal = this.$store.getters.wallet.balance;
let usd = (rate / 1000) * this.$store.getters.wallet.balance;
if(usd < 1){ if(bal < 1){
return this.path_bubble(0); return this.path_bubble(0);
} else if(usd < 100){ } else if(bal < 100){
return this.path_bubble(1); return this.path_bubble(1);
} else if(usd < 500){ } else if(bal < 1000){
return this.path_bubble(2); return this.path_bubble(2);
} else if(usd < 1000){ } else if(bal < 2000){
return this.path_bubble(3); return this.path_bubble(3);
} else if(usd < 1000){ } else if(bal > 2000){
return this.path_bubble(4); return this.path_bubble(4);
} }
} }