Skip to content

Commit

Permalink
Merge pull request #99 from JooLuiz/bugfix/min-quantity
Browse files Browse the repository at this point in the history
[Bugfix] Autocomplete block quantity button starting with 0 instead of 1
  • Loading branch information
whc105 authored Feb 22, 2022
2 parents 7eba23d + e44798d commit 67470d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed

- Fixed the issue that the autocomplete block quantity button was starting with 0 instead of 1.

## [3.8.0] - 2022-02-22

### Added
Expand Down
2 changes: 1 addition & 1 deletion react/AutocompleteBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const AutocompleteBlock: FunctionComponent<any & WrappedComponentProps> = ({
const { showToast } = useContext(ToastContext)
const [state, setState] = useState<any>({
selectedItem: null,
quantitySelected: 0,
quantitySelected: 1,
unitMultiplier: 1,
})

Expand Down

0 comments on commit 67470d9

Please sign in to comment.