Skip to content

Commit

Permalink
[FIX] Logic for room type was inverted in edit panel (#17851) (#17853)
Browse files Browse the repository at this point in the history
  • Loading branch information
cking-vonix authored Jun 9, 2020
1 parent 6be2861 commit 7d1ea63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/admin/rooms/EditRoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ function EditRoom({ room, onChange }) {
<Field.Row>
<Box display='flex' flexDirection='row' justifyContent='space-between' flexGrow={1}>
<Field.Label>{t('Public')}</Field.Label>
<RadioButton disabled={deleted} checked={roomType === 'p'} onChange={handleChange('roomType', room.t, updateType(roomType))}/>
<RadioButton disabled={deleted} checked={roomType !== 'p'} onChange={handleChange('roomType', room.t, updateType(roomType))}/>
</Box>
</Field.Row>
</Field>
<Field>
<Field.Row>
<Box display='flex' flexDirection='row' justifyContent='space-between' flexGrow={1}>
<Field.Label>{t('Private')}</Field.Label>
<RadioButton disabled={deleted} checked={roomType !== 'p'} onChange={handleChange('roomType', room.t, updateType(roomType))}/>
<RadioButton disabled={deleted} checked={roomType === 'p'} onChange={handleChange('roomType', room.t, updateType(roomType))}/>
</Box>
</Field.Row>
</Field>
Expand Down

0 comments on commit 7d1ea63

Please sign in to comment.