mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-31 19:36:46 -05:00
fix: default value on generate (#2885)
This commit is contained in:
committed by
GitHub
parent
6cbc5e5317
commit
91c5cd7478
@@ -9,7 +9,7 @@ export function withApplyDefault(
|
||||
return value;
|
||||
}
|
||||
if (value === undefined || value === null) {
|
||||
if (field.defaultValue) {
|
||||
if (field.defaultValue !== undefined) {
|
||||
if (typeof field.defaultValue === "function") {
|
||||
return field.defaultValue();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user