diff --git a/src/components/Api/Api.tsx b/src/components/Api/Api.tsx
index f5dc3d2..e6111a9 100644
--- a/src/components/Api/Api.tsx
+++ b/src/components/Api/Api.tsx
@@ -22,7 +22,7 @@ if (__DEV__) {
}
// Switch this on if you wanna run production URLs while in development
-let use_production = true;
+let use_production = false;
if (__DEV__ && use_production) {
backendURL = "https://stude.keannu1.duckdns.org";
backendURLWebsocket = "ws://stude.keannu1.duckdns.org";
diff --git a/src/routes/ConversationPage/ConversationPage.tsx b/src/routes/ConversationPage/ConversationPage.tsx
index 6bec280..94cae27 100644
--- a/src/routes/ConversationPage/ConversationPage.tsx
+++ b/src/routes/ConversationPage/ConversationPage.tsx
@@ -200,9 +200,17 @@ export default function ConversationPage() {
>
- {`Group: ${studygroup?.name ? studygroup.name : ""}`}
+ {`Group: ${studygroup?.name ? studygroup.name : "Loading..."}`}
+ {studygroup.landmark ? (
+
+ {studygroup.landmark}
+
+ ) : (
+ <>>
+ )}
+
0.02 && studying && !stopping_toofar) {
- console.log('Too far from current studying location')
+ console.log("Too far from current studying location");
stop_studying.mutate({
active: false,
});
setStopping(true);
}
}
-
},
onError: (error: Error) => {
toast.show(String(error), {
@@ -212,7 +213,7 @@ export default function Home() {
}, 500);
setStudyGroups([]);
setStudying(false);
- setStopping(false);
+ setStopping(false);
},
onError: (error: Error) => {
toast.show(String(error), {
@@ -591,6 +592,13 @@ export default function Home() {
Study Group: {studygroup.name}
+ {studygroup.landmark ? (
+
+ {studygroup.landmark}
+
+ ) : (
+ <>>
+ )}
{`Studying ${studygroup.subject}`}
@@ -698,6 +706,13 @@ export default function Home() {
Study Group: {studygroup.name}
+ {studygroup.landmark ? (
+
+ {studygroup.landmark}
+
+ ) : (
+ <>>
+ )}
{`Studying ${studygroup.subject}`}
@@ -906,7 +921,7 @@ export default function Home() {
duration: 2000,
animationType: "slide-in",
});
- requestLocation()
+ requestLocation();
}}
>
@@ -982,14 +997,13 @@ export default function Home() {
-
List View
{
setModalByGroup(!modalByGroup);
}}
- style={{alignSelf:'center'}}
+ style={{ alignSelf: "center" }}
/>
@@ -1048,6 +1062,13 @@ export default function Home() {
Group Name: {studygroup.name}
+ {studygroup.landmark ? (
+
+ {studygroup.landmark}
+
+ ) : (
+ <>>
+ )}
{`Studying ${studygroup.subject}`}
@@ -1130,14 +1151,13 @@ export default function Home() {
-
List View
{
setModalByGroup(!modalByGroup);
}}
- style={{alignSelf:'center'}}
+ style={{ alignSelf: "center" }}
/>
@@ -1174,34 +1194,43 @@ export default function Home() {
<>>
)}
{modalByGroup ? (
- study_groups_global.map((studygroup: StudyGroupType, index: number) => {
- return (
-
-
- Group Name: {studygroup.name}
-
-
- {`Studying ${studygroup.subject}`}
-
-
- Students Studying: {studygroup.students.length}
-
-
- );
- })
+ study_groups_global.map(
+ (studygroup: StudyGroupType, index: number) => {
+ return (
+
+
+ Group Name: {studygroup.name}
+
+ {studygroup.landmark ? (
+
+ {studygroup.landmark}
+
+ ) : (
+ <>>
+ )}
+
+ {`Studying ${studygroup.subject}`}
+
+
+ Students Studying: {studygroup.students.length}
+
+
+ );
+ }
+ )
) : (
<>>
)}