From 6c56769bfffcc8e9c311795d61fb828d06765a8c Mon Sep 17 00:00:00 2001 From: Rolands Date: Wed, 21 Jun 2023 19:25:39 +0300 Subject: [PATCH] dont show err toasts --- demos/full-stack_framework/src/routes/+page.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/demos/full-stack_framework/src/routes/+page.svelte b/demos/full-stack_framework/src/routes/+page.svelte index 70d4c7f..a3f40f4 100644 --- a/demos/full-stack_framework/src/routes/+page.svelte +++ b/demos/full-stack_framework/src/routes/+page.svelte @@ -25,9 +25,9 @@ //setup toasts sc.lifecycle_hooks.msg = (name:string, client_id:string, kind:string, data:any) => { if(['UPD', 'PROP_UPD'].includes(kind)) - toast('An update came in from the Socio Server.', {style:'background: #0D0D0E; color: #fff;',position: "bottom-center", duration:1000}); - else if(kind == 'ERR') - toast.error(`An error arrived for a query or prop. MSG ID:${data.id}`,{position: "bottom-center", duration:2000}) + toast('An update came in from the Socio Server.', {style:'background: #0D0D0E; color: #fff;',position: "bottom-center", duration:500}); + // else if(kind == 'ERR') + // toast.error(`An error arrived for a query or prop. MSG ID:${data.id}`,{position: "bottom-center", duration:500}); } //variables