From e4d4fd7671a83d34ff57e2803700a5652cfdee3e Mon Sep 17 00:00:00 2001 From: Ajibola Ojo <41059344+jbrit@users.noreply.github.com> Date: Tue, 14 Dec 2021 21:51:14 +0100 Subject: [PATCH] Product typo corrected (#846) --- packages/medusa/src/services/product.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/medusa/src/services/product.js b/packages/medusa/src/services/product.js index f41b9c28a7..7739035a18 100644 --- a/packages/medusa/src/services/product.js +++ b/packages/medusa/src/services/product.js @@ -729,7 +729,7 @@ class ProductService extends BaseService { if (!productOption) { throw new MedusaError( MedusaError.Types.NOT_FOUND, - `Option with id: ${optionId} does not exists` + `Option with id: ${optionId} does not exist` ) } @@ -793,7 +793,7 @@ class ProductService extends BaseService { if (!equalsFirst.every((v) => v)) { throw new MedusaError( MedusaError.Types.INVALID_DATA, - `To delete an option, first delete all variants, such that when option is deleted, no duplicate variants will exist.` + `To delete an option, first delete all variants, such that when an option is deleted, no duplicate variants will exist.` ) }