Skip to content

Commit

Permalink
fix: client side error (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
cs50victor authored Feb 27, 2024
1 parent e3dde57 commit 5325664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/PlaygroundDeviceSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const PlaygroundDeviceSelector = ({ kind }: PlaygroundDeviceSelectorProps
const [selectedDeviceName, setSelectedDeviceName] = useState('');

useEffect(() => {
deviceSelect.devices.forEach((device) => {
deviceSelect?.devices?.forEach((device) => {
if (device.deviceId === deviceSelect.activeDeviceId) {
setSelectedDeviceName(device.label);
}
Expand Down

0 comments on commit 5325664

Please sign in to comment.