Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 243f3e6

Browse files
author
Kerry Archibald
committed
kind of handle missing current device in drilled props
1 parent 96e138a commit 243f3e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/views/settings/tabs/user/SessionManagerTab.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ const SessionManagerTab: React.FC = () => {
170170
<CurrentDeviceSection
171171
device={currentDevice}
172172
isSigningOut={signingOutDeviceIds.includes(currentDevice?.device_id)}
173-
isLoading={isLoadingDeviceList || pendingDeviceIds.includes(currentDevice.device_id)}
174-
onSaveDeviceName={(deviceName) => saveDeviceName(currentDevice.device_id, deviceName)}
173+
isLoading={isLoadingDeviceList || pendingDeviceIds.includes(currentDevice?.device_id)}
174+
onSaveDeviceName={(deviceName) => saveDeviceName(currentDevice?.device_id, deviceName)}
175175
onVerifyCurrentDevice={onVerifyCurrentDevice}
176176
onSignOutCurrentDevice={onSignOutCurrentDevice}
177177
/>

0 commit comments

Comments
 (0)