Skip to content

Commit

Permalink
bug/9189-Chika-InfiniteReattemptsOnProfileScreenForAuthorizedServices…
Browse files Browse the repository at this point in the history
…Error (#9310)
  • Loading branch information
cadibemma authored Aug 16, 2024
1 parent 30010d6 commit c055011
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function ProfileScreen({ navigation }: ProfileScreenProps) {
const {
data: userAuthorizedServices,
isLoading: loadingUserAuthorizedServices,
error: getUserAuthorizedServicesError,
refetch: refetchUserAuthorizedServices,
} = useAuthorizedServices()

Expand Down Expand Up @@ -70,6 +71,12 @@ function ProfileScreen({ navigation }: ProfileScreenProps) {
<NameTag />
<LoadingComponent text={t('profile.loading')} />
</Box>
) : getUserAuthorizedServicesError ? (
<ErrorComponent
onTryAgain={refetchUserAuthorizedServices}
screenID={ScreenIDTypesConstants.PROFILE_SCREEN_ID}
error={getUserAuthorizedServicesError}
/>
) : errorCheck ? (
<Box>
<ErrorComponent
Expand Down

0 comments on commit c055011

Please sign in to comment.