From 6cb50960da66168a99ddc179e34928b43986ee62 Mon Sep 17 00:00:00 2001 From: Juliana Kang Date: Mon, 18 Sep 2023 11:55:00 -0400 Subject: [PATCH] fix: Only show subscriptions section if user has any subscriptions (#333) REV-3690 --- src/subscriptions/saga.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/subscriptions/saga.js b/src/subscriptions/saga.js index 16dae9e0..4d0b3f58 100644 --- a/src/subscriptions/saga.js +++ b/src/subscriptions/saga.js @@ -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) { /**