Skip to content

Commit 4c975a4

Browse files
committed
For some reason, using just editedGuild.active in the checked prop for Checkbox did not work.
1 parent a76cffe commit 4c975a4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web-ui/src/components/guild-results/EditGuildModal.jsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,13 @@ const EditGuildModal = ({ guild = {}, open, onSave, onClose, headerText }) => {
167167
value={editedGuild.name ? editedGuild.name : ''}
168168
onChange={e => setGuild({ ...editedGuild, name: e.target.value })}
169169
/>
170-
{guild.id && (<><Checkbox
170+
{guild.id && (<>
171+
<Checkbox
171172
id="guild-active-input"
172173
label="Active"
173174
variant="outlined"
174175
className="halfWidth"
175-
checked={editedGuild.active}
176+
checked={editedGuild.active ? editedGuild.active : false}
176177
onChange={event => {
177178
const { checked } = event.target;
178179
setGuild({ ...editedGuild, active: checked });

0 commit comments

Comments
 (0)