chore: apply biome autofix in shop dashboard

This commit is contained in:
zetaloop
2026-02-21 15:54:26 +08:00
parent 6ed8620ca6
commit c04a1d5b71
+1 -1
View File
@@ -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)
}}