diff --git a/src/components/profile/actionButtons/DeclineFriendshipButton.js b/src/components/profile/actionButtons/DeclineFriendshipButton.js index cfe20bd..aa8771a 100644 --- a/src/components/profile/actionButtons/DeclineFriendshipButton.js +++ b/src/components/profile/actionButtons/DeclineFriendshipButton.js @@ -3,6 +3,7 @@ import { useMutation } from '@apollo/client'; import { Button } from '@material-ui/core'; import { DECLINE_FRIENDSHIP } from '../../../utils/GraphQLRequests'; import SnackbarContext from '../../../contexts/SnackbarContext'; +import { catchErrorOnMutation } from '../../../utils/CommonUtils'; import { TOAST_SEVERITY_ERROR, TOAST_SEVERITY_SUCCESS } from '../../../utils/Constants'; function DeclineFriendshipButton({ username, tag, refetch }) { diff --git a/src/components/profile/actionButtons/DeleteRequestButton.js b/src/components/profile/actionButtons/DeleteRequestButton.js index cda3c18..be53baa 100644 --- a/src/components/profile/actionButtons/DeleteRequestButton.js +++ b/src/components/profile/actionButtons/DeleteRequestButton.js @@ -3,6 +3,7 @@ import { useMutation } from '@apollo/client'; import { Button } from '@material-ui/core'; import { DELETE_REQUEST } from '../../../utils/GraphQLRequests'; import SnackbarContext from '../../../contexts/SnackbarContext'; +import { catchErrorOnMutation } from '../../../utils/CommonUtils'; import { TOAST_SEVERITY_ERROR, TOAST_SEVERITY_SUCCESS } from '../../../utils/Constants'; function DeleteRequestButton({ username, tag, refetch }) { diff --git a/src/components/profile/actionButtons/UnblockUserButton.js b/src/components/profile/actionButtons/UnblockUserButton.js index f7d48b0..d3e71cf 100644 --- a/src/components/profile/actionButtons/UnblockUserButton.js +++ b/src/components/profile/actionButtons/UnblockUserButton.js @@ -3,6 +3,7 @@ import { useMutation } from '@apollo/client'; import { Button } from '@material-ui/core'; import { UNBLOCK_USER } from '../../../utils/GraphQLRequests'; import SnackbarContext from '../../../contexts/SnackbarContext'; +import { catchErrorOnMutation } from '../../../utils/CommonUtils'; import { TOAST_SEVERITY_ERROR, TOAST_SEVERITY_SUCCESS } from '../../../utils/Constants'; function UnblockUserButton({ username, tag, refetch }) {