From 21d1bab26e0a0ff9d615e32172a2e7a31eb6b41b Mon Sep 17 00:00:00 2001 From: And Finally Date: Mon, 4 Sep 2023 16:00:30 +0100 Subject: [PATCH] [wccom-17942] Making sure snackbar doesn't appear before content has loaded. - Fixing `prettier` linter errors. --- .../client/marketplace/components/extensions/extensions.tsx | 2 +- .../marketplace/components/feedback-modal/feedback-modal.tsx | 2 +- .../woocommerce-admin/client/marketplace/utils/functions.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/woocommerce-admin/client/marketplace/components/extensions/extensions.tsx b/plugins/woocommerce-admin/client/marketplace/components/extensions/extensions.tsx index 3ed1803850a..7985eff416a 100644 --- a/plugins/woocommerce-admin/client/marketplace/components/extensions/extensions.tsx +++ b/plugins/woocommerce-admin/client/marketplace/components/extensions/extensions.tsx @@ -41,7 +41,7 @@ export default function Extensions(): JSX.Element { const wccomSearchEndpoint = MARKETPLACE_HOST + MARKETPLACE_SEARCH_API_PATH + - '?' + + '?' + params.toString(); // Fetch data from WCCOM API diff --git a/plugins/woocommerce-admin/client/marketplace/components/feedback-modal/feedback-modal.tsx b/plugins/woocommerce-admin/client/marketplace/components/feedback-modal/feedback-modal.tsx index 969673909b6..a3131c5eece 100644 --- a/plugins/woocommerce-admin/client/marketplace/components/feedback-modal/feedback-modal.tsx +++ b/plugins/woocommerce-admin/client/marketplace/components/feedback-modal/feedback-modal.tsx @@ -109,7 +109,7 @@ export default function FeedbackModal(): JSX.Element { return () => { clearTimeout( timer ); - } + }; } function showSnackbar() { diff --git a/plugins/woocommerce-admin/client/marketplace/utils/functions.tsx b/plugins/woocommerce-admin/client/marketplace/utils/functions.tsx index 59c8be1c3b1..964b1ebc1c2 100644 --- a/plugins/woocommerce-admin/client/marketplace/utils/functions.tsx +++ b/plugins/woocommerce-admin/client/marketplace/utils/functions.tsx @@ -9,7 +9,7 @@ import apiFetch from '@wordpress/api-fetch'; import { Product } from '../components/product-list/types'; import { MARKETPLACE_HOST, - MARKETPLACE_CATEGORY_API_PATH + MARKETPLACE_CATEGORY_API_PATH, } from '../components/constants'; import { CategoryAPIItem } from '../components/category-selector/types'; import { LOCALE } from '../../utils/admin-settings';