Skip to content

Commit

Permalink
invert logic for rendering tos checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
knollengewaechs committed Nov 21, 2024
1 parent 377d289 commit 8d618c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/javascripts/admin/auth/registration_form_generic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ function RegistrationFormGeneric(props: Props) {
</Checkbox>
</FormItem>
)}
{terms != null && !terms.enabled ? null : (
{terms == null || terms.enabled ? (
<FormItem
name="tos_check"
valuePropName="checked"
Expand All @@ -326,7 +326,7 @@ function RegistrationFormGeneric(props: Props) {
.
</Checkbox>
</FormItem>
)}
) : null}
</div>

<FormItem>
Expand Down
4 changes: 2 additions & 2 deletions frontend/javascripts/admin/auth/registration_form_wkorg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ function RegistrationFormWKOrg(props: Props) {
</Checkbox>
</FormItem>

{terms != null && !terms.enabled ? null : (
{terms == null || terms.enabled ? (
<FormItem
name="tos_check"
valuePropName="checked"
Expand All @@ -206,7 +206,7 @@ function RegistrationFormWKOrg(props: Props) {
.
</Checkbox>
</FormItem>
)}
) : null}
</div>

<FormItem>
Expand Down

0 comments on commit 8d618c4

Please sign in to comment.