Skip to content

Commit 7241807

Browse files
0marSalahdmitrizagidulin
authored andcommitted
refactor: Remove unnecessary authentication checks in ComprehensiveClaimDetails component
1 parent 6601b99 commit 7241807

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

app/view/[id]/ComprehensiveClaimDetails.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -332,15 +332,6 @@ const ComprehensiveClaimDetails: React.FC<ComprehensiveClaimDetailsProps> = ({
332332
if (status === 'loading') {
333333
return
334334
}
335-
if (status === 'unauthenticated') {
336-
setLoading(false)
337-
return
338-
}
339-
if (!accessToken) {
340-
setErrorMessage('You need to log in to view this content.')
341-
setLoading(false)
342-
return
343-
}
344335
const fetchDriveData = async () => {
345336
try {
346337
const accessToken1 = await getAccessToken(fileID)

0 commit comments

Comments
 (0)