File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,12 @@ const createAuthFormWithFallback = async () => {
3434
3535 return result ;
3636 } catch ( error ) {
37- console . warn ( `Failed to ${ strategy . name } ` ) ;
37+ if ( import . meta. env . DEV ) {
38+ console . warn ( `Failed to ${ strategy . name } ` ) ;
3839
39- if ( error instanceof Error ) {
40- console . warn ( 'Error:' , error . message ) ;
40+ if ( error instanceof Error ) {
41+ console . warn ( 'Error:' , error . message ) ;
42+ }
4143 }
4244 }
4345 }
@@ -100,10 +102,12 @@ export const validateAuthFormWithFallback = async (request: Request) => {
100102
101103 return result . form ;
102104 } catch ( error ) {
103- console . warn ( `Failed to ${ strategy . name } ` ) ;
105+ if ( import . meta. env . DEV ) {
106+ console . warn ( `Failed to ${ strategy . name } ` ) ;
104107
105- if ( error instanceof Error ) {
106- console . warn ( 'Error:' , error . message ) ;
108+ if ( error instanceof Error ) {
109+ console . warn ( 'Error:' , error . message ) ;
110+ }
107111 }
108112 }
109113 }
You can’t perform that action at this time.
0 commit comments