Skip to content

Commit

Permalink
Merge pull request #844 from UofT-Frosh-Orientation/snackbar-message-…
Browse files Browse the repository at this point in the history
…for-bribe-points

Display snackbar message when bribe points are added successfully
  • Loading branch information
ashleyleal authored Aug 24, 2024
2 parents 5c51791 + 17197e1 commit aedd559
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 aedd559

Please sign in to comment.