Skip to content

Commit

Permalink
fix: Modify subscriptions saga to not fetch subs
Browse files Browse the repository at this point in the history
  • Loading branch information
julianajlk committed Aug 29, 2024
1 parent bfb5ab2 commit e4a4acc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/subscriptions/saga.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { put, takeLatest, call } from 'redux-saga/effects';
import { put, takeLatest } from 'redux-saga/effects';

import { fetchSubscriptions, hideSubscriptionSection } from './actions';
import getSubscriptions from './service';

function* handleFetchSubscriptions() {
try {
yield put(fetchSubscriptions.request());
const result = yield call(getSubscriptions);
// B2C subscriptions sunsetting, removed the subscriptions API call
const result = [];
if (!result?.length) {
yield put(hideSubscriptionSection());
}
Expand Down

0 comments on commit e4a4acc

Please sign in to comment.