Skip to content

Commit

Permalink
Release 0.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
polishq committed Jun 2, 2020
1 parent f7b3093 commit d2a04ce
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [0.0.11] - 2020-06-02

### Fixed

- Validation error for phone number only appears after user leaves field

## [0.0.10] - 2020-06-01

### Changed
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"vendor": "vtex",
"name": "flow-finance-components",
"version": "0.0.10",
"version": "0.0.11",
"title": "Flow Finance Components",
"description": "Front end components for Flow Finance payment system",
"defaultLocale": "pt-BR",
Expand Down
3 changes: 2 additions & 1 deletion react/components/AccountCreatePages/BusinessInfoPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ const BusinessInfoPage: StorefrontFunctionComponent<WrappedComponentProps &

useEffect(() => {
if (businessInformation.phoneNumber) setShowPhoneError(true)
}, [businessInformation.phoneNumber])
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])

useEffect(() => {
if (
Expand Down
5 changes: 5 additions & 0 deletions react/components/AccountCreatePages/PersonalInfoPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ const PersonalInfoPage: StorefrontFunctionComponent<WrappedComponentProps &
addressWithValidation.receiverName.postalCodeAutoCompleted = true
const [address, setAddress] = useState(addressWithValidation)

useEffect(() => {
if (personalInformation.phoneNumber) setShowPhoneError(true)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])

useEffect(() => {
if (
personalInformation.phoneNumber.length >= 10 &&
Expand Down

0 comments on commit d2a04ce

Please sign in to comment.