feat: add validation to enter details flow
This commit is contained in:
@@ -238,14 +238,10 @@ export const userQueryRouter = router({
|
||||
|
||||
const data = await getVerifiedUser({ session: ctx.session })
|
||||
|
||||
if (!data) {
|
||||
if (!data || "error" in data) {
|
||||
return null
|
||||
}
|
||||
|
||||
if ("error" in data) {
|
||||
return data
|
||||
}
|
||||
|
||||
return parsedUser(data.data, true)
|
||||
}),
|
||||
name: safeProtectedProcedure.query(async function ({ ctx }) {
|
||||
|
||||
Reference in New Issue
Block a user