Skip to content

Commit

Permalink
Merge pull request #2140 from SalesforceCommerceCloud/bugfix/checkout…
Browse files Browse the repository at this point in the history
…page-radiobutton-render-error

@W-17178104@ - Fixed "getCheckboxProps is not a function" when rendering checkout page in generated app.
  • Loading branch information
shethj authored Nov 25, 2024
2 parents 3059c15 + ce95bdf commit 57c24e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/template-retail-react-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## v5.1.0-dev (TBD)

- [BUG] Fixed "getCheckboxProps is not a function" when rendering checkout page in generated app.[#2140](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2140)
- Replace transfer basket call with merge basket on checkout [#2138])(https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2138)


### Accessibility Improvements
- [a11y] Fix LinkList component to follow a11y practise [#2098])(https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2098)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import {CheckIcon} from '@salesforce/retail-react-app/app/components/icons'
const RadioCardGroupContext = React.createContext()

export const RadioCard = (props) => {
const getRadioProps = React.useContext(RadioCardGroupContext)
const {getInputProps, getCheckboxProps} = useRadio(getRadioProps(props))
const getRadioGroupProps = React.useContext(RadioCardGroupContext)
const {getInputProps, getRadioProps} = useRadio(getRadioGroupProps(props))

const input = getInputProps()
const checkbox = getCheckboxProps()
const checkbox = getRadioProps()
return (
<Box as="label">
<input {...input} />
Expand Down

0 comments on commit 57c24e1

Please sign in to comment.