From 1d5da0387a63d35cb0f9d50bcd18253728cbca67 Mon Sep 17 00:00:00 2001 From: Martin Stone Date: Thu, 29 Jun 2023 00:49:29 -0400 Subject: [PATCH] don't show an error if the user or domain doesn't have response plays ability --- src/redux/response_plays/sagas.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/redux/response_plays/sagas.js b/src/redux/response_plays/sagas.js index cc9fa3cc..34525a06 100644 --- a/src/redux/response_plays/sagas.js +++ b/src/redux/response_plays/sagas.js @@ -44,6 +44,14 @@ export function* getResponsePlays() { if (e.status === 401) { e.message = i18next.t('Unauthorized Access'); } + if (e.response.status === 301) { + // user just doesn't have response plays + yield put({ + type: FETCH_RESPONSE_PLAYS_COMPLETED, + responsePlays: [], + }); + return; + } yield put({ type: FETCH_RESPONSE_PLAYS_ERROR, message: e.message }); yield put({ type: UPDATE_CONNECTION_STATUS_REQUESTED,