From ad8c015d9fa9a52c0716d0afc48a64ead7240a85 Mon Sep 17 00:00:00 2001 From: Raouf Date: Mon, 6 Jan 2025 13:06:32 +0300 Subject: [PATCH] fix(pie-toast-provider): DSW-2222 update logs --- packages/components/pie-toast-provider/src/index.ts | 6 +++--- packages/components/pie-toast-provider/src/toaster.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/components/pie-toast-provider/src/index.ts b/packages/components/pie-toast-provider/src/index.ts index b0ca4ecb2b..8d9842df49 100644 --- a/packages/components/pie-toast-provider/src/index.ts +++ b/packages/components/pie-toast-provider/src/index.ts @@ -108,9 +108,9 @@ export class PieToastProvider extends RtlMixin(LitElement) implements ToastProvi } /** - * - * Clears all toasts from the queue and dismisses the currently visible toast. - */ + * + * Clears all toasts from the queue and dismisses the currently visible toast. + */ public clearToasts () { this._toasts = []; this._currentToast = null; diff --git a/packages/components/pie-toast-provider/src/toaster.ts b/packages/components/pie-toast-provider/src/toaster.ts index 533be13099..d10fef4a5f 100644 --- a/packages/components/pie-toast-provider/src/toaster.ts +++ b/packages/components/pie-toast-provider/src/toaster.ts @@ -9,12 +9,12 @@ export const toaster = { const toastProviders = document.querySelectorAll('pie-toast-provider'); if (toastProviders.length === 0) { - console.error('ToastProvider is not initialized.'); + console.error('The pie-toast component requires a pie-toast-provider element present in the DOM.'); return null; } if (toastProviders.length > 1) { - console.error('Multiple PieToastProviders are found in the DOM. Only one provider is supported currently and should be registered at the root of the app.'); + console.error('Multiple pie-toast-provider are found in the DOM. Only one provider is supported currently and should be registered at the root of the app.'); return null; }