Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
krboktv committed Feb 17, 2019
1 parent 28fabd3 commit 9769309
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions telegram/scenes/scenes.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,10 @@ const tokenBuffio = new WizardScene(
let amountInUsd;
if (ctx.message.text.indexOf("$") >= 0) {
amountInUsd = ctx.message.text.substring(0, ctx.message.text.length-1);
amount = (Number(await utils.course.convert("USD", tickerFrom, amountInUsd)));
amount = amountInUsd;
} else {
amount = ctx.message.text;
amountInUsd = 1;
amountInUsd = amount;
}
console.log(amountInUsd);
const key = guid.create().value;
Expand Down

0 comments on commit 9769309

Please sign in to comment.