Skip to content

Commit

Permalink
Snackbar message when bribe points are added successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
kexinxiang committed Aug 23, 2024
1 parent d3dfc46 commit 17197e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/src/state/scuntTeams/saga.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 17197e1

Please sign in to comment.