File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import ExternalLinkAltIcon from '@patternfly/react-icons/dist/esm/icons/external
31
31
const Index : React . FunctionComponent = ( ) => {
32
32
const { data : session } = useSession ( ) ;
33
33
const [ pullRequests , setPullRequests ] = React . useState < PullRequest [ ] > ( [ ] ) ;
34
- const [ error , setError ] = React . useState < string | null > ( null ) ;
34
+ // const [error, setError] = React.useState<string | null>(null);
35
35
const router = useRouter ( ) ;
36
36
37
37
const fetchAndSetPullRequests = React . useCallback ( async ( ) => {
@@ -52,7 +52,7 @@ const Index: React.FunctionComponent = () => {
52
52
53
53
setPullRequests ( sortedPRs ) ;
54
54
} catch ( error ) {
55
- setError ( 'Failed to fetch pull requests.' ) ;
55
+ console . log ( 'Failed to fetch pull requests.' + error ) ;
56
56
}
57
57
}
58
58
} , [ session ?. accessToken ] ) ;
@@ -109,7 +109,6 @@ const Index: React.FunctionComponent = () => {
109
109
</ PageSection >
110
110
< PageSection >
111
111
< div style = { { marginBottom : '20px' } } />
112
- { error && < div > { error } </ div > }
113
112
{ pullRequests . length === 0 ? (
114
113
< EmptyState >
115
114
< EmptyStateHeader
You can’t perform that action at this time.
0 commit comments