Homepage loading improvements

This commit is contained in:
Keannu Bernasol 2023-10-15 12:35:53 +08:00
parent ecf62a1008
commit a11c9dff65

View file

@ -379,8 +379,7 @@ export default function Home() {
</Button>
</>
);
} else if (dist && location) {
if (
} else if (
(StudentStatusQuery.isFetching && studying) ||
StudentStatusListQuery.isFetching ||
StudyGroupQuery.isFetching ||
@ -395,7 +394,8 @@ export default function Home() {
<Text style={styles.text_white_medium}>Loading...</Text>
</>
);
} else if (dist <= 1 || map_distance_override) {
} else if (dist && location) {
if (dist <= 1 || map_distance_override) {
return (
<>
<View style={{ alignSelf: "flex-end" }}>