fix linting errors
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
'use server'
|
||||
|
||||
// @ts-ignore
|
||||
import {getUserWithAccount} from '@prisma/client/sql'
|
||||
|
||||
import {getAccountByUserId} from '@/data/accout'
|
||||
|
||||
@@ -17,7 +17,7 @@ export const login = async (data: z.infer<typeof LoginSchema>) => {
|
||||
|
||||
// If the data is invalid, return an error
|
||||
if (!validatedData) {
|
||||
return {error: t('Invalid input data')}
|
||||
return {error: t('Error.invalid-input-data')}
|
||||
}
|
||||
|
||||
// Destructure the validated data
|
||||
|
||||
Reference in New Issue
Block a user