Corrected channel_language order

This commit is contained in:
infinite-persistence 2021-03-19 23:33:13 +08:00 committed by Sean Yesmunt
parent 035f04fb3e
commit 945a5365f9

View file

@ -70,9 +70,9 @@ export default function YoutubeSync(props: Props) {
Lbryio.call('yt', 'new', { Lbryio.call('yt', 'new', {
type: 'sync', type: 'sync',
immediate_sync: true, immediate_sync: true,
channel_language: language,
desired_lbry_channel_name: `@${channel}`, desired_lbry_channel_name: `@${channel}`,
return_url: `https://${DOMAIN}/$/${inSignUpFlow ? PAGES.AUTH : PAGES.YOUTUBE_SYNC}`, return_url: `https://${DOMAIN}/$/${inSignUpFlow ? PAGES.AUTH : PAGES.YOUTUBE_SYNC}`,
channel_language: language,
}).then((ytAuthUrl) => { }).then((ytAuthUrl) => {
// react-router isn't needed since it's a different domain // react-router isn't needed since it's a different domain
window.location.href = ytAuthUrl; window.location.href = ytAuthUrl;