Corrects error messages

This commit is contained in:
Oleg Silkin 2020-01-28 16:45:05 -05:00
parent 968686be68
commit 0a4e0ca33f

View file

@ -76,7 +76,7 @@ export function doCommentCreate(
}); });
dispatch( dispatch(
doToast({ doToast({
message: 'Oops, someone broke comments.', message: 'Unable to create comment, please try again later.',
isError: true, isError: true,
}) })
); );
@ -105,7 +105,7 @@ export function doCommentHide(comment_id: string) {
}); });
dispatch( dispatch(
doToast({ doToast({
message: 'There was an error hiding this comment. Please try again later.', message: 'Unable to hide this comment, please try again later.',
isError: true, isError: true,
}) })
); );
@ -144,7 +144,7 @@ export function doCommentAbandon(comment_id: string) {
}); });
dispatch( dispatch(
doToast({ doToast({
message: 'There was an error hiding this comment. Please try again later.', message: 'Unable to delete this comment, please try again later.',
isError: true, isError: true,
}) })
); );
@ -177,7 +177,7 @@ export function doCommentUpdate(comment_id: string, comment: string) {
dispatch({ type: ACTIONS.COMMENT_UPDATE_FAILED, data: error }); dispatch({ type: ACTIONS.COMMENT_UPDATE_FAILED, data: error });
dispatch( dispatch(
doToast({ doToast({
message: 'There was an error hiding this comment. Please try again later.', message: 'Unable to edit this comment, please try again later.',
isError: true, isError: true,
}) })
); );