bugfixing endless loop

This commit is contained in:
MuslemRahimi 2025-02-05 19:37:28 +01:00
parent 3f9c2deed3
commit 79eecc4f7d
2 changed files with 10 additions and 2 deletions

View File

@ -379,7 +379,11 @@
<div
class="flex-1 flex-shrink-0 flex flex-row items-center justify-between -mt-2"
>
<a href={$previousPage || "/"} class="ml-2 cursor-pointer">
<a
href={/^\/(stocks|etf)/.test($previousPage)
? "/"
: $previousPage || "/"}
>
<svg
class="w-5 h-5 inline-block"
xmlns="http://www.w3.org/2000/svg"

View File

@ -388,7 +388,11 @@
<div
class="flex-1 flex-shrink-0 flex flex-row items-center justify-between -mt-2"
>
<a href={$previousPage || "/"} class="ml-2 cursor-pointer">
<a
href={/^\/(stocks|etf)/.test($previousPage)
? "/"
: $previousPage || "/"}
>
<svg
class="w-5 h-5 inline-block"
xmlns="http://www.w3.org/2000/svg"