Apply suggestions from code review

Co-Authored-By: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
This commit is contained in:
Dominik Żegleń 2020-04-10 13:14:43 +02:00 committed by dominik-zeglen
parent 61a989a061
commit 1b7eac3596

View file

@ -75,7 +75,7 @@ const ProductVariantCreatorContent: React.FC<ProductVariantCreatorContentProps>
: ProductVariantCreateReducerActionType.applyStockToAll : ProductVariantCreateReducerActionType.applyStockToAll
}) })
} }
// Stock change is not fixed in this PR so we wo't include it here // TODO: Stock change is not fixed in this PR so we won't include it here
onApplyToAllChange={(price, type) => onApplyToAllChange={(price, type) =>
dispatchFormDataAction( dispatchFormDataAction(
type === "price" && { type === "price" && {
@ -98,7 +98,7 @@ const ProductVariantCreatorContent: React.FC<ProductVariantCreatorContentProps>
: ProductVariantCreateReducerActionType.changeApplyStockToAttributeId : ProductVariantCreateReducerActionType.changeApplyStockToAttributeId
}) })
} }
// Stock change is not fixed in this PR so we wo't include it here // TODO: Stock change is not fixed in this PR so we won't include it here
onAttributeValueChange={(valueId, price, type) => onAttributeValueChange={(valueId, price, type) =>
dispatchFormDataAction( dispatchFormDataAction(
type === "price" && { type === "price" && {