Skip to content

Commit

Permalink
fix: Only show subscriptions section if user has any subscriptions (#333
Browse files Browse the repository at this point in the history
)

REV-3690
  • Loading branch information
julianajlk authored Sep 18, 2023
1 parent 1a2d040 commit 6cb5096
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/subscriptions/saga.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ function* handleFetchSubscriptions() {
try {
yield put(fetchSubscriptions.request());
const result = yield call(getSubscriptions);
if (!result?.length) {
yield put(hideSubscriptionSection());
}
yield put(fetchSubscriptions.success(result));
} catch (error) {
/**
Expand Down

0 comments on commit 6cb5096

Please sign in to comment.