File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ function AppContent() {
4848 steamAuthState,
4949 setSteamAuthState,
5050 showSteamAuthModal,
51+ setShowSteamAuthModal,
5152 steamAuthModalState,
5253 steamAuthError,
5354 steamLinkingUrl,
@@ -235,11 +236,16 @@ function AppContent() {
235236 setPendingAutoConnect ( null ) ;
236237 } , [ onAuthModalClose ] ) ;
237238
238- const onSteamAuthRequired = useCallback ( ( serverName ?: string ) => {
239- if ( serverName ) {
240- setPendingAutoConnect ( serverName ) ;
241- }
242- } , [ ] ) ;
239+ const onSteamAuthRequired = useCallback (
240+ ( serverName ?: string ) => {
241+ if ( serverName ) {
242+ setPendingAutoConnect ( serverName ) ;
243+ }
244+ setShowSteamAuthModal ( true ) ;
245+ handleSteamAuthenticate ( false ) ;
246+ } ,
247+ [ setShowSteamAuthModal , handleSteamAuthenticate ] ,
248+ ) ;
243249
244250 const handleSteamModalClose = useCallback ( async ( ) => {
245251 await onSteamAuthModalClose ( ) ;
Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ export function useSteamAuth() {
108108 steamAuthState,
109109 setSteamAuthState,
110110 showSteamAuthModal,
111+ setShowSteamAuthModal,
111112 steamAuthModalState,
112113 steamAuthError,
113114 steamLinkingUrl,
You can’t perform that action at this time.
0 commit comments