mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 21:35:19 +00:00
chore: more linter errors
This commit is contained in:
@@ -14,7 +14,7 @@ export async function subscribeToNewsletterAction(email: string) {
|
||||
})
|
||||
|
||||
if (existingContacts.data) {
|
||||
const existingContact = existingContacts.data.data.find((contact: any) => contact.email === email)
|
||||
const existingContact = existingContacts.data.data.find((contact: { email: string }) => contact.email === email)
|
||||
|
||||
if (existingContact) {
|
||||
return { success: false, error: "You are already subscribed to the newsletter" }
|
||||
|
||||
Reference in New Issue
Block a user