diff --git a/app/(dashboard)/dashboard/shop/page.tsx b/app/(dashboard)/dashboard/shop/page.tsx index 7cbb87a..959c303 100644 --- a/app/(dashboard)/dashboard/shop/page.tsx +++ b/app/(dashboard)/dashboard/shop/page.tsx @@ -131,7 +131,7 @@ export default function ShopManagementPage() { if (next === null) return const value = next.trim() if (!value) return - const index = shop.announcements.findIndex((item) => item === announcement) + const index = shop.announcements.indexOf(announcement) if (index < 0) return updateAnnouncement(shop.id, index, value) }}