parent
7204687d80
commit
82b8a84597
2 changed files with 7 additions and 6 deletions
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
|
@ -43,6 +43,7 @@ jobs:
|
||||||
- name: Run lint
|
- name: Run lint
|
||||||
run: |
|
run: |
|
||||||
npm run lint
|
npm run lint
|
||||||
|
git diff --exit-code ./src
|
||||||
|
|
||||||
jest-tests:
|
jest-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
@ -50,11 +50,11 @@ export function getUpdateShippingRateVariables(
|
||||||
params: ShippingZoneUrlQueryParams,
|
params: ShippingZoneUrlQueryParams,
|
||||||
id: string
|
id: string
|
||||||
): UpdateShippingRateVariables {
|
): UpdateShippingRateVariables {
|
||||||
const isPriceType = data.type === ShippingMethodTypeEnum.PRICE
|
const isPriceType = data.type === ShippingMethodTypeEnum.PRICE;
|
||||||
const parsedMinValue = parseFloat(data.minValue)
|
const parsedMinValue = parseFloat(data.minValue);
|
||||||
const parsedMaxValue = parseFloat(data.maxValue)
|
const parsedMaxValue = parseFloat(data.maxValue);
|
||||||
const isPriceSet = !data.noLimits && isPriceType
|
const isPriceSet = !data.noLimits && isPriceType;
|
||||||
const isWeightSet = !data.noLimits && !isPriceType
|
const isWeightSet = !data.noLimits && !isPriceType;
|
||||||
return {
|
return {
|
||||||
id: params.id,
|
id: params.id,
|
||||||
input: {
|
input: {
|
||||||
|
|
Loading…
Reference in a new issue