Skip to content

Commit

Permalink
Remove yield* in js files (#3511)
Browse files Browse the repository at this point in the history
  • Loading branch information
sliptype committed Jun 5, 2023
1 parent f77c8b0 commit 19c8ef5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function* onSignedIn({ payload: { account } }) {

// Create userbank only if lazy is not enabled
const feePayerOverride = yield select(getFeePayer)
const getFeatureEnabled = yield* getContext('getFeatureEnabled')
const getFeatureEnabled = yield getContext('getFeatureEnabled')
if (!getFeatureEnabled(FeatureFlags.LAZY_USERBANK_CREATION_ENABLED)) {
yield call(
createUserBankIfNeeded,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -727,10 +727,10 @@ function* confirmPublishPlaylist(
])
)
if (dismissToastKey) {
yield* put(manualClearToast({ key: dismissToastKey }))
yield put(manualClearToast({ key: dismissToastKey }))
}

yield* put(toast({ content: 'Your playlist is now public!' }))
yield put(toast({ content: 'Your playlist is now public!' }))
},
function* ({ error, timeout, message }) {
// Fail Call
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ const flatten = (list) =>
function* filterDeletes(tracksMetadata, removeDeleted) {
const tracks = yield select(getTracks)
const users = yield select(getUsers)
const getFeatureEnabled = yield* getContext('getFeatureEnabled')
const remoteConfig = yield* getContext('remoteConfigInstance')
const getFeatureEnabled = yield getContext('getFeatureEnabled')
const remoteConfig = yield getContext('remoteConfigInstance')
yield call(remoteConfig.waitForRemoteConfig)

const isGatedContentEnabled = yield getFeatureEnabled(
Expand Down

0 comments on commit 19c8ef5

Please sign in to comment.