Skip to content

Commit 1cc774e

Browse files
committed
fix: misc
1 parent 1d49889 commit 1cc774e

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

src/pages/tools/number/generic-calc/generic-calc.service.test.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/pages/tools/number/generic-calc/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,7 @@ export default async function makeTool(
237237
initialValues={initialValues}
238238
toolInfo={{
239239
title: calcData.name,
240-
description:
241-
(calcData.description || '') +
242-
' Generated from formula: ' +
243-
calcData.formula
240+
description: calcData.longDescription
244241
}}
245242
verticalGroups
246243
getGroups={({ values, updateField }) => [

src/pages/tools/number/generic-calc/meta.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,9 @@ allGenericCalcs.forEach((x) => {
1717

1818
tools.push(
1919
defineTool('number', {
20-
name: x.name,
20+
...x,
2121
path: 'generic-calc/' + x.path,
22-
icon: x.icon || '',
23-
description: x.description || '',
24-
shortDescription: x.description || '',
2522
keywords: ['calculator', 'math', ...x.keywords],
26-
longDescription: x.longDescription || '',
2723
component: lazy(importComponent2)
2824
})
2925
);

0 commit comments

Comments
 (0)