Co-authored-by: SektorDV <35644259+SektorDV@users.noreply.github.com>
This commit is contained in:
parent
8ef3c06efe
commit
9b2f5e3db2
1 changed files with 2 additions and 2 deletions
|
@ -174,7 +174,6 @@ function useProductCreateForm(
|
|||
trackInventory: false,
|
||||
weight: ""
|
||||
};
|
||||
|
||||
const [changed, setChanged] = React.useState(false);
|
||||
const triggerChange = () => setChanged(true);
|
||||
|
||||
|
@ -312,7 +311,8 @@ function useProductCreateForm(
|
|||
data.channelListings.some(
|
||||
channel =>
|
||||
validatePrice(channel.price) || validateCostPrice(channel.costPrice)
|
||||
));
|
||||
) ||
|
||||
!data.category);
|
||||
|
||||
return {
|
||||
change: handleChange,
|
||||
|
|
Loading…
Reference in a new issue