diff --git a/package-lock.json b/package-lock.json index d93ab7b..cf1269f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5574,8 +5574,8 @@ } }, "lbry-redux": { - "version": "github:lbryio/lbry-redux#e5443aafcfa7450c97e4edf838859352be6ca220", - "from": "github:lbryio/lbry-redux#e5443aafcfa7450c97e4edf838859352be6ca220", + "version": "github:lbryio/lbry-redux#f6d24c54baf5ff4e67aba90684dc6e55fe9cbecc", + "from": "github:lbryio/lbry-redux#f6d24c54baf5ff4e67aba90684dc6e55fe9cbecc", "requires": { "proxy-polyfill": "0.1.6", "reselect": "^3.0.0", @@ -5583,8 +5583,8 @@ } }, "lbryinc": { - "version": "github:lbryio/lbryinc#b9f354ae50bd57691765a7d042c5054167878bf4", - "from": "github:lbryio/lbryinc#b9f354ae50bd57691765a7d042c5054167878bf4", + "version": "github:lbryio/lbryinc#745d3cba93b7956fc16fb56df1fe265bc25ebc87", + "from": "github:lbryio/lbryinc#745d3cba93b7956fc16fb56df1fe265bc25ebc87", "requires": { "reselect": "^3.0.0" } diff --git a/package.json b/package.json index fb0a3b7..3a8e1fe 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ "base-64": "^0.1.0", "@expo/vector-icons": "^8.1.0", "gfycat-style-urls": "^1.0.3", - "lbry-redux": "lbryio/lbry-redux#e5443aafcfa7450c97e4edf838859352be6ca220", - "lbryinc": "lbryio/lbryinc#b9f354ae50bd57691765a7d042c5054167878bf4", + "lbry-redux": "lbryio/lbry-redux#f6d24c54baf5ff4e67aba90684dc6e55fe9cbecc", + "lbryinc": "lbryio/lbryinc#745d3cba93b7956fc16fb56df1fe265bc25ebc87", "lodash": ">=4.17.11", "merge": ">=1.2.1", "moment": "^2.22.1", diff --git a/src/component/channelSelector/view.js b/src/component/channelSelector/view.js index e5e8c29..1faf7b6 100644 --- a/src/component/channelSelector/view.js +++ b/src/component/channelSelector/view.js @@ -26,7 +26,7 @@ export default class ChannelSelector extends React.PureComponent { } componentDidMount() { - const { channels, channelName, fetchChannelListMine, fetchingChannels } = this.props; + const { channels = [], channelName, fetchChannelListMine, fetchingChannels } = this.props; if (!channels.length && !fetchingChannels) { fetchChannelListMine(); } diff --git a/src/index.js b/src/index.js index b911e04..4013fe2 100644 --- a/src/index.js +++ b/src/index.js @@ -154,7 +154,7 @@ store.subscribe(() => { const tags = state.tags.followedTags; const newPayload = { - version: '0', + version: '0.1', shared: { subscriptions, tags, @@ -163,7 +163,9 @@ store.subscribe(() => { if (!isEqual(newPayload, currentPayload)) { currentPayload = newPayload; - Lbryio.call('user_settings', 'set', { settings: JSON.stringify(newPayload) }); + if (Lbryio.authToken) { + Lbryio.call('user_settings', 'set', { settings: JSON.stringify(newPayload) }); + } } }); diff --git a/src/page/publish/view.js b/src/page/publish/view.js index 5d5d2f2..465fb16 100644 --- a/src/page/publish/view.js +++ b/src/page/publish/view.js @@ -611,8 +611,6 @@ class PublishPage extends React.PureComponent { }); }; - handleUploadPressed = () => {}; - getRandomFileId = () => { // generate a random id for a photo or recorded video between 1 and 20 (for creating thumbnails) const id = Math.floor(Math.random() * (20 - 2)) + 1; @@ -832,7 +830,7 @@ class PublishPage extends React.PureComponent {