tangled
alpha
login
or
join now
shi.gg
/
mellow-web
4
fork
atom
The weeb for the next gen discord boat - Wamellow
wamellow.com
bot
discord
4
fork
atom
overview
issues
pulls
pipelines
refactor: normalize tag names by trimming and lowercasing
shi.gg
2 months ago
fccacaff
e6ae008b
verified
This commit was signed with the committer's
known signature
.
shi.gg
SSH Key Fingerprint:
SHA256:f/mKQ+wsL4JFEMsfMBVIpFfwyYH0N5+n6IHwZA0Q+U0=
+2
-2
1 changed file
expand all
collapse all
unified
split
app
dashboard
[guildId]
custom-commands
create.component.tsx
+2
-2
app/dashboard/[guildId]/custom-commands/create.component.tsx
···
56
56
headers: {
57
57
"Content-Type": "application/json"
58
58
},
59
59
-
body: JSON.stringify({ name: name || "new-tag" })
59
59
+
body: JSON.stringify({ name: name.trim() || "new-tag" })
60
60
});
61
61
}}
62
62
onSuccess={(tag) => {
···
71
71
name="Name"
72
72
placeholder="new-tag"
73
73
value={name}
74
74
-
setValue={setName}
74
74
+
setValue={(val) => setName((val || "").toLowerCase())}
75
75
max={32}
76
76
/>
77
77
</Modal>