Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit

Permalink
fix: Joule make invoice amounts
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Feb 19, 2019
1 parent 4b29986 commit da9cb19
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/views/swap/steps/inputInvoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import injectSheet from 'react-jss';
import { FaBolt } from 'react-icons/fa';
import View from '../../../components/view';
import InputArea from '../../../components/inputarea';
import { getCurrencyName, getSampleInvoice } from '../../../scripts/utils';
import {
getCurrencyName,
getSampleInvoice,
toSatoshi,
} from '../../../scripts/utils';

const InputInvoiceStyles = () => ({
wrapper: {
Expand Down Expand Up @@ -38,7 +42,7 @@ class StyledInputInvoice extends React.Component {
const { swapInfo, webln } = this.props;

if (webln) {
webln.makeInvoice(swapInfo.quoteAmount).then(response => {
webln.makeInvoice(toSatoshi(swapInfo.quoteAmount)).then(response => {
const invoice = response.paymentRequest;

this.setState({ value: invoice });
Expand Down

0 comments on commit da9cb19

Please sign in to comment.