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

Commit

Permalink
fix: webln undefined in landing page (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 authored May 11, 2019
1 parent c95f361 commit 726ccfe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/views/landingpage/landingPageDesktop.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import injectSheet from 'react-jss';
import LandingPageWrapper from './landingpagewrapper';
import LandingPageWrapper from './landingPageWrapper';
import ReactNotification from 'react-notifications-component';
import View from '../../components/view';
import { generateKeys, navigation } from '../../actions';
Expand All @@ -12,6 +12,7 @@ import ModalComponent from '../../components/modal';
import ModalContent from '../../components/modalcontent';
import BackGround from '../../components/background';
import { bitcoinNetwork, litecoinNetwork } from '../../constants';

const boltz_logo = require('../../asset/icons/boltz_logo.png');

const LandingPageDeskTopContent = ({
Expand Down
2 changes: 1 addition & 1 deletion src/views/landingpage/landingPageMobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { generateKeys, navigation } from '../../actions';
import { MobileSwapTab } from '../../components/swaptab';
import View from '../../components/view';
import BackGround from '../../components/background';
import LandingPageWrapper from './landingpagewrapper';
import LandingPageWrapper from './landingPageWrapper';

// TODO: discuss implementing the info modal on mobile

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class LandingPageWrapper extends React.Component {
try {
requestProvider().then(provider => {
this.webln = provider;
this.forceUpdate();
});
} catch (error) {
console.log(`Could not enable WebLN: ${error}`);
Expand Down

0 comments on commit 726ccfe

Please sign in to comment.