Skip to content

Commit

Permalink
Fix mistake add ? to params
Browse files Browse the repository at this point in the history
  • Loading branch information
huy232 committed Nov 9, 2023
1 parent 9e10422 commit 471dea7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Pages/AnimeWatch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ function AnimeWatch({ instance }) {
if (type === "normal" || type === null) {
if (mainId && index !== null) {
const getAnime = async () => {
console.log(index)
const numIndex = Number(index)
await instance
.get(`/anime/${mainId}/episodes/${numIndex}`, {
Expand Down Expand Up @@ -245,7 +246,7 @@ function AnimeWatch({ instance }) {
</p>
{info.map((item, i) => (
<Link
to={`/watch/${anime}?index=${item.name}?type=normal`}
to={`/watch/${anime}?index=${item.name}&type=normal`}
key={i}
title={item.full_name}
className={`flex items-center h-[80px] px-[12px] py-[8px] w-full hover:text-white hover:opacity-80 hover:bg-white/20 duration-200 ease-in-out ${
Expand Down

1 comment on commit 471dea7

@vercel
Copy link

@vercel vercel bot commented on 471dea7 Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mirai – ./

mirai-huy8856.vercel.app
unime.vercel.app
mirai-git-main-huy8856.vercel.app

Please sign in to comment.