Skip to content

Commit fc25da3

Browse files
small fixes
1 parent 4f08ff4 commit fc25da3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/PDiskPopup/PDiskPopup.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {EMPTY_DATA_PLACEHOLDER} from '../../utils/constants';
88
import {createPDiskDeveloperUILink} from '../../utils/developerUI/developerUI';
99
import type {PreparedPDisk} from '../../utils/disks/types';
1010
import {useTypedSelector} from '../../utils/hooks';
11-
import {bytesToGB} from '../../utils/utils';
11+
import {bytesToGB, isNumeric} from '../../utils/utils';
1212
import {InfoViewer} from '../InfoViewer';
1313
import type {InfoViewerItem} from '../InfoViewer';
1414
import {LinkWithIcon} from '../LinkWithIcon/LinkWithIcon';
@@ -54,7 +54,7 @@ export const preparePDiskData = (
5454
pdiskData.push({label: 'Path', value: Path});
5555
}
5656

57-
if (!isNaN(Number(TotalSize))) {
57+
if (isNumeric(TotalSize)) {
5858
pdiskData.push({
5959
label: 'Available',
6060
value: `${bytesToGB(AvailableSize)} of ${bytesToGB(TotalSize)}`,

src/utils/disks/prepareDisks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function prepareWhiteboardVDiskData(
4545
? prepareWhiteboardPDiskData({...PDisk, NodeId: PDisk?.NodeId ?? NodeId})
4646
: undefined;
4747

48-
const actualPDiskId = PDiskId ?? PDisk?.PDiskId;
48+
const actualPDiskId = PDiskId ?? preparedPDisk?.PDiskId;
4949

5050
const vDiskSizeFields = prepareVDiskSizeFields({
5151
AvailableSize: AvailableSize ?? PDisk?.AvailableSize,

0 commit comments

Comments
 (0)