Skip to content

Commit

Permalink
##1739 :: fix :: cont;
Browse files Browse the repository at this point in the history
  • Loading branch information
migbash committed Oct 10, 2023
1 parent b6ec5f0 commit 2962ee4
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions src/lib/components/_main_/header/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
$: deepReactListenUserUid = $userBetarenaSettings?.user?.firebase_user_data?.uid;
$: deepReactListenUserLang = $userBetarenaSettings?.lang;
$: deepReactListenWebLang = $sessionStore?.serverLang;
$: deepReactListenUser = JSON.stringify($userBetarenaSettings?.user);
$: deepReactListenNavBtnHover = JSON.stringify($sessionStore?.navBtnHover);
Expand Down Expand Up @@ -482,9 +483,9 @@
* **WARNING:**
* **triggered by changes in:**
* - `deepReactListenNavBtnHover` - **kicker** (via deepListen)
* - `deepReactListenUserLang` - **kicker** (via deepListen)
* - `deepReactListenWebLang` - **kicker** (via deepListen)
*/
$: if (browser && deepReactListenNavBtnHover != undefined && deepReactListenUserLang)
$: if (browser && deepReactListenNavBtnHover != undefined && deepReactListenWebLang)
{
// ### [🐞]
dlog
Expand All @@ -495,7 +496,7 @@
calcNavTrianglePos();
}
else if (browser && deepReactListenNavBtnHover == undefined && deepReactListenUserLang)
else if (browser && deepReactListenNavBtnHover == undefined && deepReactListenWebLang)
{
// ### [🐞]
dlog
Expand All @@ -504,11 +505,18 @@
true
);
if (isRouteCompetitions)
calcNavTrianglePos('competitions');
else
calcNavTrianglePos('scores');
;
setTimeout
(
() =>
{
if (isRouteCompetitions)
calcNavTrianglePos('competitions');
else
calcNavTrianglePos('scores');
;
},
250
);
}
// #endregion ➤ 🔥 REACTIVIY [SVELTE]
Expand Down

0 comments on commit 2962ee4

Please sign in to comment.