Merged in fix/unpin-zod-version (pull request #1419)

Unpin zod version

Approved-by: Linus Flood
This commit is contained in:
Anton Gunnarsson
2025-02-26 12:46:26 +00:00
parent d5e5b9a526
commit 15fa01cbb2
3 changed files with 8 additions and 9 deletions

View File

@@ -100,7 +100,7 @@
"superjson": "^2.2.1",
"usehooks-ts": "3.1.0",
"uuid": "^11.0.5",
"zod": "3.22.4",
"zod": "^3.22.4",
"zustand": "^4.5.2"
},
"devDependencies": {

View File

@@ -44,7 +44,6 @@ const getVerifiedUserSuccessCounter = meter.createCounter(
"trpc.user.get-success"
)
const getVerifiedUserFailCounter = meter.createCounter("trpc.user.get-fail")
const getProfileCounter = meter.createCounter("trpc.user.profile")
const getProfileSuccessCounter = meter.createCounter(
"trpc.user.profile-success"
)
@@ -275,7 +274,7 @@ const getCreditCards = cache(
const expirationDate = dt(card.expirationDate).startOf("day")
const currentDate = dt().startOf("day")
return expirationDate > currentDate
} catch (error) {
} catch (_) {
return false
}
}
@@ -303,7 +302,7 @@ export const userQueryRouter = router({
return null
}
if ("error" in data) {
if ("error" in data && data.error) {
return data
}