Skip to content

Commit

Permalink
Add return null back
Browse files Browse the repository at this point in the history
  • Loading branch information
ProchaLu committed Oct 24, 2024
1 parent 748eab5 commit 5b779f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/(tabs)/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function App() {
);

if (!fontsLoaded) {
return;
return null;
}

return (
Expand Down
4 changes: 2 additions & 2 deletions app/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ const styles = StyleSheet.create({
});

export default function HomeLayout() {
const [loaded] = useFonts({
const [fontsLoaded] = useFonts({
Poppins_700Bold,
Poppins_400Regular,
});

if (!loaded) {
if (!fontsLoaded) {
return null;
}

Expand Down

0 comments on commit 5b779f0

Please sign in to comment.