Skip to content

Commit 6ceabbe

Browse files
committed
Fix
1 parent 938d165 commit 6ceabbe

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/client/apps/contwatch-client/app/[lang]/handlers/components/AttributeWidget/AttributeWidget.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,15 @@ export const AttributeWidget: FC<AttributeWidgetProps> = ({
149149
<Flex gap={"0.2rem"} alignItems={"center"}>
150150
<Icon icon={"arrow-down-square"} size={15} />
151151
<Text size={"tiny"}>
152-
{minStat.value} {attribute.data?.unit}
152+
{minStat.value} {minStat.unit}
153153
</Text>
154154
</Flex>
155155
)}
156156
{maxStat && (
157157
<Flex gap={"0.2rem"} alignItems={"center"}>
158158
<Icon icon={"arrow-up-square"} size={15} />
159159
<Text size={"tiny"}>
160-
{maxStat.value} {attribute.data?.unit}
160+
{maxStat.value} {maxStat.unit}
161161
</Text>
162162
</Flex>
163163
)}

src/client/packages/types/src/models/DataStatModel.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export interface DataStatModel {
33
attribute: number;
44
type: string;
55
value: number;
6+
unit: string;
67
date: string;
78
time: string;
89
}

0 commit comments

Comments
 (0)