Skip to content

Commit

Permalink
Merge pull request #27 from liquality/fix-swap-review-screen
Browse files Browse the repository at this point in the history
Fix swap review screen
  • Loading branch information
bradleySuira authored Jan 8, 2021
2 parents 4f92daa + 8e8facb commit e0bc2f9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "liquality-wallet",
"version": "0.10.7",
"version": "0.10.8",
"private": true,
"license": "MIT",
"author": "Liquality <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"manifest_version": 2,
"version": "0.10.7",
"version": "0.10.8",
"name": "Liquality Wallet",
"description": "Secure multi-crypto wallet with built-in Atomic Swaps!",
"homepage_url": "https://liquality.io",
Expand Down
14 changes: 8 additions & 6 deletions src/views/Swap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
<div class="confirm-value" :style="getAssetColorStyle(asset)">
{{ sendAmount }} {{ asset }}
</div>
<div class="details-text">${{ sendAmountFiat }}</div>
<div class="details-text">{{ sendAmountFiat }}</div>
</div>
</div>
<div class="detail-group">
Expand All @@ -258,7 +258,7 @@
<label class="text-muted"> Amount + Fees </label>
<div class="d-flex align-items-center justify-content-between mt-0">
<div class="font-weight-bold">
{{ send }} {{ asset }} + {{ totalFees[assetChain] }}
{{ sendAmount }} {{ asset }} + {{ totalFees[assetChain] }}
{{ sendFeeType }}
</div>
<div class="font-weight-bold">${{ totalToSendInFiat }}</div>
Expand All @@ -269,9 +269,9 @@
<label> Receive </label>
<div class="d-flex align-items-center justify-content-between my-0 py-0">
<div class="confirm-value" :style="getAssetColorStyle(toAsset)">
{{ toAmount }} {{ toAsset }}
{{ receiveAmount }} {{ toAsset }}
</div>
<div class="details-text">${{ receiveAmountFiat }}</div>
<div class="details-text">{{ receiveAmountFiat }}</div>
</div>
</div>
<div class="detail-group">
Expand Down Expand Up @@ -645,9 +645,11 @@ export default {
]?.[this.asset]
return address && cryptoassets[this.asset].formatAddress(address)
},
totalToSend () {
return BN(this.safeAmount).plus(BN(this.totalFees[this.assetChain]))
},
totalToSendInFiat () {
const total = BN(this.safeAmount).plus(BN(this.totalFees[this.assetChain]))
return prettyFiatBalance(total, this.fiatRates[this.asset])
return prettyFiatBalance(this.totalToSend, this.fiatRates[this.asset])
}
},
methods: {
Expand Down

0 comments on commit e0bc2f9

Please sign in to comment.