Skip to content

Commit

Permalink
fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindballa committed Jul 14, 2024
1 parent 166f14f commit 19161c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/wishlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export default function WishlistPage() {
onSubmit={(e) => {
e.preventDefault();

if (unallowedPeople.includes(name.toLowerCase())) {
if (unallowedPeople.some((up) => name.toLowerCase().includes(up))) {
alert(
'Sorry, you are not allowed to see the list. You might have already gifted something.'
);
Expand Down

0 comments on commit 19161c1

Please sign in to comment.