Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix: reduce link name length to min 1 (#9805)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude authored Nov 20, 2023
1 parent 4c4547b commit 53e906a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const LinkSchema = new mongoose.Schema(
name: {
type: String,
required: true,
min: 2,
min: 1,
max: 128,
},
url: {
Expand Down
2 changes: 1 addition & 1 deletion pages/account/manage/link/[[...data]].js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export default function ManageLink({ BASE_URL, username, link }) {
onChange={(e) => setName(e.target.value)}
value={name}
required
minLength="2"
minLength="1"
maxLength="128"
/>
<p className="text-sm text-primary-low-medium">
Expand Down

0 comments on commit 53e906a

Please sign in to comment.