mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2024-11-17 06:19:25 +08:00
Homepage loading improvements
This commit is contained in:
parent
ecf62a1008
commit
a11c9dff65
1 changed files with 16 additions and 16 deletions
|
@ -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" }}>
|
||||
|
|
Loading…
Reference in a new issue