File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
apps/contwatch-client/app/[lang]/handlers/components/AttributeWidget
packages/types/src/models Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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 ) }
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments