Skip to content

Commit 111948b

Browse files
committed
fix Output
1 parent 421bdb4 commit 111948b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/client/src/v2-events/features/events/registered-fields/NumberWithUnit.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ function NumberWithUnitInput({
7171

7272
export const NumberWithUnit = {
7373
Input: NumberWithUnitInput,
74-
Output: ({ value }: { value?: NumberWithUnitFieldValue }) => {
75-
if (value?.numericValue === undefined || value?.unit === undefined) {
74+
Output: ({ value }: { value?: NumberWithUnitFieldUpdateValue }) => {
75+
if (value?.numericValue === undefined || value.unit === undefined) {
7676
return null
7777
}
7878

79-
return <>{`${value.numericValue} ${value.unit}` || ''}</>
79+
return <>{`${value.numericValue} ${value.unit}`}</>
8080
}
8181
}

0 commit comments

Comments
 (0)