The weeb for the next gen discord boat - Wamellow wamellow.com
bot discord

refactor: normalize tag names by trimming and lowercasing

shi.gg fccacaff e6ae008b

verified
+2 -2
+2 -2
app/dashboard/[guildId]/custom-commands/create.component.tsx
··· 56 headers: { 57 "Content-Type": "application/json" 58 }, 59 - body: JSON.stringify({ name: name || "new-tag" }) 60 }); 61 }} 62 onSuccess={(tag) => { ··· 71 name="Name" 72 placeholder="new-tag" 73 value={name} 74 - setValue={setName} 75 max={32} 76 /> 77 </Modal>
··· 56 headers: { 57 "Content-Type": "application/json" 58 }, 59 + body: JSON.stringify({ name: name.trim() || "new-tag" }) 60 }); 61 }} 62 onSuccess={(tag) => { ··· 71 name="Name" 72 placeholder="new-tag" 73 value={name} 74 + setValue={(val) => setName((val || "").toLowerCase())} 75 max={32} 76 /> 77 </Modal>