diff --git a/ui/js/component/auth.js b/ui/js/component/auth.js index ce32f0db2..32a5a0b78 100644 --- a/ui/js/component/auth.js +++ b/ui/js/component/auth.js @@ -1,4 +1,5 @@ import React from "react"; +import lbry from "../lbry.js"; import lbryio from "../lbryio.js"; import Modal from "./modal.js"; import ModalPage from "./modal-page.js"; @@ -194,7 +195,7 @@ class CodeRequiredStage extends React.Component { constructor(props) { super(props); - this._balanceSubscribeId = nullp + this._balanceSubscribeId = null this.state = { balance: 0, diff --git a/ui/js/lbryio.js b/ui/js/lbryio.js index e9e858366..239e83f17 100644 --- a/ui/js/lbryio.js +++ b/ui/js/lbryio.js @@ -110,7 +110,7 @@ lbryio.authenticate = function() { lbry.status().then((response) => { let installation_id = response.installation_id; - installation_id = installation_id.substring(0, installation_id.length) + "X" + installation_id = installation_id.substring(0, installation_id.length - 1) + "X" function setCurrentUser() { lbryio.call('user', 'me').then((data) => {