fix: broken navigation to resistant page
parent
147f85776c
commit
8b09312f2d
|
@ -13,7 +13,9 @@ export const PopupContent = ({ resistant }: { resistant: Resistant }) => {
|
||||||
<div
|
<div
|
||||||
style={{ minWidth: "30em", minHeight: "15em" }}
|
style={{ minWidth: "30em", minHeight: "15em" }}
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
navigate(isHome ? getResistantPageUrl(resistant) : resistant.id)
|
isHome
|
||||||
|
? window.location.assign(getResistantPageUrl(resistant))
|
||||||
|
: navigate(resistant.id)
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
|
|
@ -22,7 +22,9 @@ export const ResistantThumb = ({ resistant }: Props) => {
|
||||||
<div
|
<div
|
||||||
className="thumb resistant-thumb"
|
className="thumb resistant-thumb"
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
navigate(isHome ? getResistantPageUrl(resistant) : resistant.id)
|
isHome
|
||||||
|
? window.location.assign(getResistantPageUrl(resistant))
|
||||||
|
: navigate(resistant.id)
|
||||||
}
|
}
|
||||||
style={{ position: "relative" }}
|
style={{ position: "relative" }}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue