Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gersomvg committed Jul 20, 2018
1 parent f803a9c commit 94fa1b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/ProductEditor/ProductEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ class ProductEditor extends React.PureComponent {
}

save = async () => {
this.setState({ isSaving: true });

if (!this.isDataComplete()) {
RN.Alert.alert('De product afbeelding, naam, merk en classificatie zijn verplicht.');
return;
}

this.setState({ isSaving: true });

try {
if (!this.state.brand.id) {
const brand = await this.props.fetch.brands.create(this.state.brand.name).promise;
Expand Down

0 comments on commit 94fa1b2

Please sign in to comment.