Skip to content

Commit 9a580c7

Browse files
2 parents 8620556 + 076466f commit 9a580c7

File tree

2 files changed

+75
-80
lines changed

2 files changed

+75
-80
lines changed

.idea/workspace.xml

Lines changed: 72 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/renderer/components/DasboardComponents/TransferFundsComponents/TransferFunds.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,9 @@
267267
handlesendall(){
268268
if(this.currencyHash) {
269269
// console.log(this.currencyHash.text , this.currencyHash.text.split("(")[1].split(" ") , this.currencyHash.text.split("(")[1].split(" ")[0]);
270-
this.amount = this.currencyHash.text.split("(")[1].split(" ")[0];
270+
this.amount = parseFloat(this.currencyHash.text.split("(")[1].split(" ")[0]) - parseFloat("0.00"+this.price);
271271
} else {
272-
this.amount = this.totalBalanceData;
272+
this.amount = parseFloat(this.totalBalanceData) - parseFloat("0.00"+this.price);
273273
}
274274
this.handleAmount();
275275
},
@@ -278,7 +278,7 @@
278278
setTimeout(() => {
279279
if(this.currencyHash && this.sendAllCheck) {
280280
// console.log(this.currencyHash.text , this.currencyHash.text.split("(")[1].split(" ") , this.currencyHash.text.split("(")[1].split(" ")[0]);
281-
this.amount = this.currencyHash.text.split("(")[1].split(" ")[0];
281+
this.amount = parseFloat(this.currencyHash.text.split("(")[1].split(" ")[0]) - parseFloat("0.00"+this.price);
282282
this.handleAmount();
283283
}
284284
}, 200)

0 commit comments

Comments
 (0)