Skip to content

Commit

Permalink
4445 refactor code smell many mon null assertions (#4446)
Browse files Browse the repository at this point in the history
* 4431-refactor-code-smell-enum-implicit-value-code-smell

* 4433-refactor-code-smell-missing-union-type

* 4440-refactor-code-any-type-in-form-events-and-inputs

* 4445-refactor-code-smell-many-mon-null-assertions

* remove-reactsniffer-and-understand-files

* Create lucky-monkeys-care.md

---------

Co-authored-by: Patryk Andrzejewski <[email protected]>
  • Loading branch information
HigorSantiago and andrzejewsky authored Nov 23, 2023
1 parent 4efa2fb commit 9ea7b26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lucky-monkeys-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Refactor code smell many mon null assertions
2 changes: 1 addition & 1 deletion src/shipping/views/RateUpdate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export const RateUpdate: React.FC<RateUpdateProps> = ({
formData: ShippingZoneRateUpdateFormData,
): Promise<unknown[]> => {
const getUpdateVariables =
rate!.type === ShippingMethodTypeEnum.PRICE
rate.type === ShippingMethodTypeEnum.PRICE
? getUpdateShippingPriceRateVariables
: getUpdateShippingWeightRateVariables;
const response = await updateShippingRate({
Expand Down

0 comments on commit 9ea7b26

Please sign in to comment.