From 3663f3e39457dd413d48268bf8c8635921943089 Mon Sep 17 00:00:00 2001 From: Mykola Zapeka Date: Tue, 18 Feb 2025 17:45:22 +0200 Subject: [PATCH] Fix issue 227 --- uncoder-os/package.json | 10 +++++----- .../src/components/IocsStatistic/useIocsStatistic.ts | 3 +-- .../TextEditor/InputTextEditor/useInputEditor.ts | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/uncoder-os/package.json b/uncoder-os/package.json index 2eb269c3..fa8757d6 100644 --- a/uncoder-os/package.json +++ b/uncoder-os/package.json @@ -53,11 +53,11 @@ "html-webpack-plugin": "^5.6.0", "mini-css-extract-plugin": "^2.9.1", "node-polyfill-webpack-plugin": "^4.0.0", - "postcss": "^8.4.47", - "postcss-inline-base64": "^7.3.1", - "postcss-loader": "^8.1.1", - "sass": "^1.79.3", - "sass-loader": "^16.0.2", + "postcss": "8.4.47", + "postcss-inline-base64": "7.3.1", + "postcss-loader": "8.1.1", + "sass": "1.77.6", + "sass-loader": "16.0.2", "source-map-loader": "^5.0.0", "style-loader": "^4.0.0", "ts-loader": "^9.5.1", diff --git a/uncoder-os/src/components/IocsStatistic/useIocsStatistic.ts b/uncoder-os/src/components/IocsStatistic/useIocsStatistic.ts index 939ce069..44718a65 100644 --- a/uncoder-os/src/components/IocsStatistic/useIocsStatistic.ts +++ b/uncoder-os/src/components/IocsStatistic/useIocsStatistic.ts @@ -1,4 +1,3 @@ -import { parseInt } from 'lodash'; import { BasicIocType } from '../../types/iocsTypes'; export const useIocsStatistic = () => { @@ -43,7 +42,7 @@ export const useIocsStatistic = () => { }; const convertValue = (value?: string | number): string => { - const convertedValue: number = parseInt((value ?? 0).toString()); + const convertedValue: number = parseInt((value ?? 0).toString(), 10); if (convertedValue >= 1000) { return `${Math.floor(convertedValue / 1000)}k`; diff --git a/uncoder-os/src/components/TextEditor/InputTextEditor/useInputEditor.ts b/uncoder-os/src/components/TextEditor/InputTextEditor/useInputEditor.ts index 4ca9b896..a7116de2 100644 --- a/uncoder-os/src/components/TextEditor/InputTextEditor/useInputEditor.ts +++ b/uncoder-os/src/components/TextEditor/InputTextEditor/useInputEditor.ts @@ -3,7 +3,7 @@ import { useDispatch, useSelector } from 'react-redux'; import { Dispatch } from '@reduxjs/toolkit'; import { clearText, inputEditorSelector } from '../../../reduxData/inputEditor'; -import ace from 'ace-builds'; +import ace from 'ace-builds/src-noconflict/ace'; import 'ace-builds/src-noconflict/ext-language_tools'; import { loadSuggesterData, suggesterSelector } from '../../../reduxData/suggester'; import { useEditorSuggestion } from '../useEditorSuggestion';