From 6f48cc57bc0b06925a707278a6d820f0e2e0fe81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frane=20Poli=C4=87?= <16856471+fPolic@users.noreply.github.com> Date: Thu, 6 Apr 2023 15:45:54 +0200 Subject: [PATCH] fix(admin-ui): "cancel fulfillment" notification text (#3750) * fix: "cancel fulfillment" notification text * fix: add changesets --------- Co-authored-by: fPolic --- .changeset/strange-files-cry.md | 5 +++++ .../ui/src/domain/orders/details/templates/fulfillment.tsx | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .changeset/strange-files-cry.md diff --git a/.changeset/strange-files-cry.md b/.changeset/strange-files-cry.md new file mode 100644 index 0000000000..c9f19a00d0 --- /dev/null +++ b/.changeset/strange-files-cry.md @@ -0,0 +1,5 @@ +--- +"@medusajs/admin-ui": patch +--- + +fix(admin-ui): correct notification text on fulfillment cancel diff --git a/packages/admin-ui/ui/src/domain/orders/details/templates/fulfillment.tsx b/packages/admin-ui/ui/src/domain/orders/details/templates/fulfillment.tsx index 422f55347c..72e910d87e 100644 --- a/packages/admin-ui/ui/src/domain/orders/details/templates/fulfillment.tsx +++ b/packages/admin-ui/ui/src/domain/orders/details/templates/fulfillment.tsx @@ -84,7 +84,11 @@ export const FormattedFulfillment = ({ default: return cancelFulfillment.mutate(fulfillment.id, { onSuccess: () => - notification("Success", "Successfully canceled order", "success"), + notification( + "Success", + "Successfully canceled fulfillment", + "success" + ), onError: (err) => notification("Error", getErrorMessage(err), "error"), })