File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/react-aria-components/docs Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ function Example() {
234
234
return (
235
235
<>
236
236
<MyColorField label = " Color" value = { color } onChange = { setColor } />
237
- <p >Current color value: { color .toString (' hex' )} </p >
237
+ <p >Current color value: { color ? .toString (' hex' )} </p >
238
238
</>
239
239
);
240
240
}
@@ -262,7 +262,7 @@ function Example() {
262
262
<MyColorField label = " Saturation" value = { color } onChange = { setColor } colorSpace = " hsl" channel = " saturation" />
263
263
<MyColorField label = " Lightness" value = { color } onChange = { setColor } colorSpace = " hsl" channel = " lightness" />
264
264
</div >
265
- <p >Current color value: { color .toString (' hex' )} </p >
265
+ <p >Current color value: { color ? .toString (' hex' )} </p >
266
266
</>
267
267
);
268
268
}
You can’t perform that action at this time.
0 commit comments