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