Skip to content

Commit

Permalink
fix: ETH swap modal formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
t8 committed Feb 3, 2021
1 parent 075bdc7 commit 2b935f7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/routes/swap.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -377,11 +377,16 @@
return;
}
if (order.pst > 0) {
if (order.pst > 0 && receiveSelected !== "ETH") {
modalText = `Selling ${sendAmount} ${value.ticker} at a rate of ${
receiveAmount / sendAmount
} AR/${value.ticker}`;
modalDetails = `You're sending ${order.pst} ${value.ticker} + ${order.ar} AR`;
} else if (order.pst > 0 && receiveSelected === "ETH") {
modalText = `Selling ${sendAmount} ${value.ticker} at a rate of ${
sendAmount / receiveAmount
} ${value.ticker}/AR`;
modalDetails = `You're sending ${order.pst} ${value.ticker} + ${order.ar} AR`;
} else {
modalText = `Buying ${sendAmount} AR's worth of ${value.ticker}`;
modalDetails = `You're sending ${order.ar} AR`;
Expand Down

0 comments on commit 2b935f7

Please sign in to comment.