Skip to content

Commit

Permalink
[fix]: register disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivaBhattacharjee committed Sep 23, 2024
1 parent 3703077 commit ec20e9e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion public/sw.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/app/register/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ const Page = () => {
<span>Registering...</span>
</button>
) : (
<button className={` p-3 ${userName && email && password && confirmPassword != "" && password === confirmPassword ? "bg-blue-600 cursor-pointer" : "bg-white/30 text-black cursor-not-allowed"} rounded-lg mt-3 font-semibold duration-200 ${userName && email && password && confirmPassword != "" && password && confirmPassword.length > 8 && password && "hover:bg-white"} hover:text-black`} disabled={userName && email && password && confirmPassword != "" && password && confirmPassword.length > 8 ? true : false}>
Register
</button>
<button className={` p-3 ${userName && email && password && confirmPassword != "" && password === confirmPassword ? "bg-blue-600 cursor-pointer" : "bg-white/30 text-black cursor-not-allowed"} rounded-lg mt-3 font-semibold duration-200 ${userName && email && password && confirmPassword != "" && password && confirmPassword.length > 8 && password && "hover:bg-white"} hover:text-black`}>Register</button>
)}

<span className=" text-center mt-2">
Expand Down
1 change: 1 addition & 0 deletions src/components/AniScanSearchLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const AniScanSearchLayout: React.FC<AniScanSearchLayoutProps> = ({ searchResult
const response = await url.json();
const responseArray: Anime[] = [response];
setView(responseArray);
console.log(responseArray);
}
prevAnilist.current = searchResult?.result[number].anilist.id || null;
setLoading(false);
Expand Down

0 comments on commit ec20e9e

Please sign in to comment.