From 17197e189cb23b0088f2f5d64a0c36f2644baa90 Mon Sep 17 00:00:00 2001 From: alissaxx Date: Fri, 23 Aug 2024 09:52:50 -0400 Subject: [PATCH] Snackbar message when bribe points are added successfully --- client/src/state/scuntTeams/saga.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/state/scuntTeams/saga.jsx b/client/src/state/scuntTeams/saga.jsx index b92926d6..b0c74232 100644 --- a/client/src/state/scuntTeams/saga.jsx +++ b/client/src/state/scuntTeams/saga.jsx @@ -181,6 +181,7 @@ export function* submitBribePointsSaga({ payload: { teamNumber, points, setSnack }); yield put(addPointsSuccess(result.data.scuntTeams)); yield put(updateUserInfoSuccess(result.data.user)); + setSnackbar && setSnackbar('Bribe points added successfully!', false); } catch (error) { yield put(addPointsFailure(error.response?.data?.errorMessage)); yield put(updateUserInfoFailure(error.response?.data?.errorMessage));