Skip to content

Commit

Permalink
fix loading
Browse files Browse the repository at this point in the history
  • Loading branch information
belmirofss committed Nov 15, 2023
1 parent 53fad3c commit bb08834
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "F1HUB",
"slug": "f1hub",
"scheme": "com.yabcompany.f1hub",
"version": "2.1.1",
"version": "2.1.2",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
Expand All @@ -20,7 +20,7 @@
},
"android": {
"package": "com.yabcompany.f1hub",
"versionCode": 9,
"versionCode": 10,
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#121212"
Expand Down
4 changes: 2 additions & 2 deletions src/components/SectionContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const SectionContainer = ({
alignItems: "center",
}}
>
{contentVisible && (
{contentVisible && !isLoading && (
<>
<View>
{title && (
Expand Down Expand Up @@ -106,7 +106,7 @@ export const SectionContainer = ({
)}
</View>

{contentVisible && <>{isError ? <Error /> : children}</>}
{contentVisible && !isLoading && <>{isError ? <Error /> : children}</>}
</>
);
};

0 comments on commit bb08834

Please sign in to comment.