Skip to content

Commit

Permalink
fix(submit): allow empty string as address name
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Jan 4, 2024
1 parent 8807ee8 commit 4d6b276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ const settingsSchema = {
};

const addressSchema = Joi.object({
name: Joi.string().max(256).example('Some Name'),
name: Joi.string().trim().empty('').max(256).example('Some Name'),
address: Joi.string()
.email({
ignoreLength: false
Expand Down

0 comments on commit 4d6b276

Please sign in to comment.