diff --git a/src/components/Navigator/Guide.tsx b/src/components/Navigator/Guide.tsx index 3869556..8461435 100644 --- a/src/components/Navigator/Guide.tsx +++ b/src/components/Navigator/Guide.tsx @@ -17,8 +17,9 @@ const Guide: FC = ({ images }) => { if (from === -1 || to === -1 || from === to) return; const f = from === 20 ? 15 : from + 1; const t = to === 20 ? 15 : to + 1; - const pathSuffix = `/src/assets/map/${f}/${f} ไป ${t}`; - const data = images.find((image) => image.default.src.includes(pathSuffix)); + const data = images.find((image) => + image.default.src.includes(`/${f} ไป ${t}`) + ); setImage(data ? data.default.src : ""); }, [from, to]);