Skip to content

Commit

Permalink
Fixed checkbox state
Browse files Browse the repository at this point in the history
  • Loading branch information
flashburst committed Dec 28, 2023
1 parent d388e44 commit d0cf995
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/CoverForm/PurchasePolicyForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import {
isValidProduct
} from '@/src/helpers/cover'
import { useNotifier } from '@/src/hooks/useNotifier'
import { usePolicyDisabledStatus } from '@/src/hooks/usePolicyDisabledStatus'
import { usePolicyFees } from '@/src/hooks/usePolicyFees'
import { usePurchasePolicy } from '@/src/hooks/usePurchasePolicy'
import { useValidateReferralCode } from '@/src/hooks/useValidateReferralCode'
Expand All @@ -52,7 +53,6 @@ import {
} from '@lingui/macro'
import { useLingui } from '@lingui/react'
import { useWeb3React } from '@web3-react/core'
import { usePolicyDisabledStatus } from '@/src/hooks/usePolicyDisabledStatus'

const getMonthEnd = (month, fullYear) => {
const d = new Date(fullYear, month + 1, 0)
Expand Down Expand Up @@ -299,6 +299,7 @@ export const PurchasePolicyForm = ({
<Checkbox
name='terms_parameters_exclusions'
id='terms_parameters_exclusions'
checked={rulesAccepted}
onChange={() => { setRulesAccepted(!rulesAccepted) }}
data-testid='accept-rules'
>
Expand Down

0 comments on commit d0cf995

Please sign in to comment.