Skip to content

Commit

Permalink
🐛 Update create review text (#1611)
Browse files Browse the repository at this point in the history
Resolves https://issues.redhat.com/browse/MTA-1858

Signed-off-by: ibolton336 <ibolton@redhat.com>
  • Loading branch information
ibolton336 committed Dec 12, 2023
1 parent dc9ee3a commit 3084c00
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ export const ReviewForm: React.FC<IReviewFormProps> = ({

try {
if (review) {
// This is an update action
await updateReviewMutation.mutateAsync({
...review,
...payload,
Expand All @@ -145,10 +144,9 @@ export const ReviewForm: React.FC<IReviewFormProps> = ({
variant: "info",
});
} else {
// This is a save action
await createReviewMutation.mutateAsync(payload);
pushNotification({
title: "Review has been updated.",
title: "Review has been created.",
variant: "info",
});
}
Expand Down

0 comments on commit 3084c00

Please sign in to comment.