fix: re-trigger authentication after Playwright download completes
This commit is contained in:
@@ -34,12 +34,15 @@ function App(): React.JSX.Element {
|
||||
openUpdateDialog,
|
||||
handleInstallUserRelease,
|
||||
handleAdminDownloadAndInstall,
|
||||
refreshUpdateDialogState
|
||||
refreshUpdateDialogState,
|
||||
initializeAuth
|
||||
} = useAppBootstrap()
|
||||
|
||||
const handlePlaywrightDownloadComplete = React.useCallback(() => {
|
||||
setShowPlaywrightDownload(false)
|
||||
}, [setShowPlaywrightDownload])
|
||||
// Re-trigger authentication after download completes
|
||||
void initializeAuth()
|
||||
}, [setShowPlaywrightDownload, initializeAuth])
|
||||
|
||||
const shouldShowLogout = currentUser?.userType === 'Admin' || isSwitchedByAdmin
|
||||
|
||||
|
||||
@@ -330,6 +330,7 @@ export function useAppBootstrap() {
|
||||
openUpdateDialog,
|
||||
handleInstallUserRelease,
|
||||
handleAdminDownloadAndInstall,
|
||||
refreshUpdateDialogState
|
||||
refreshUpdateDialogState,
|
||||
initializeAuth
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user