Skip to content

Commit

Permalink
fix(pie-toast-provider): DSW-2222 update logs
Browse files Browse the repository at this point in the history
  • Loading branch information
raoufswe committed Jan 7, 2025
1 parent d0992dd commit ad8c015
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/components/pie-toast-provider/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions packages/components/pie-toast-provider/src/toaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ad8c015

Please sign in to comment.