diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConverted.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConverted.tsx index 497a59e97..16d37ad62 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConverted.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConverted.tsx @@ -100,9 +100,9 @@ export const RecordFeeConvertedAmount: CustomFunctionComponent = () => { } else if (feeRule.conversion_logic_id === ConversionLogics.ProductWeight) { calcValue = calcValue * productData.weight; } else { - const weightItem = feeRule.conversion_logic?.weight_items.find((item) => { - item.product_id - 99999 === category.id || item.product_id === productData.id; - }); + const weightItem = feeRule.conversion_logic?.weight_items.find( + (item) => item.product_id - 99999 === category.id || item.product_id === productData.id, + ); if (!weightItem) return; if (weightItem.conversion_logic_id === ConversionLogics.Keep) { calcValue = calcValue * weightItem.weight; diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConvertedRead.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConvertedRead.tsx index 46de89457..bd60f633e 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConvertedRead.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordFeeConvertedRead.tsx @@ -95,9 +95,9 @@ export const ReadFeeConvertedAmount: CustomFunctionComponent = () => { } else if (feeRule.conversion_logic_id === ConversionLogics.ProductWeight) { calcValue = calcValue * productData.weight; } else { - const weightItem = feeRule.conversion_logic.weight_items.find((item) => { - item.product_id - 99999 === category.id || item.product_id === productData.id; - }); + const weightItem = feeRule.conversion_logic.weight_items.find( + (item) => item.product_id - 99999 === category.id || item.product_id === productData.id, + ); if (!weightItem) return; if (weightItem.conversion_logic_id === ConversionLogics.Keep) { calcValue = calcValue * weightItem.weight;