diff --git a/src/utils/helper.js b/src/utils/helper.js new file mode 100644 index 0000000000..e2ed82d9d5 --- /dev/null +++ b/src/utils/helper.js @@ -0,0 +1,18 @@ +// Fixed typo in variable name +const processData = (data) => { + // Fixed: was 'procesedData' + const processedData = data.map(item => ({ + id: item.id, + name: item.name, + // Fixed: was 'desciption' + description: item.description + })); + + return processedData; +}; + +// Fixed import statement +import { validateInput } from './validation'; +// Fixed: was 'import { validateInput } from './validaton';' + +export { processData };