Skip to content

Commit

Permalink
Merge branch 'master' into feat/may-14-release
Browse files Browse the repository at this point in the history
  • Loading branch information
oreHGA authored May 23, 2024
2 parents 971d35e + b791545 commit 11b8851
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/lab/experiment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const Experiment: FC<IExperiment> = (experiment) => {
window.addEventListener("message", (event) => {
// IMPORTANT: Check the origin of the data!
// You should probably not use '*', but restrict it to certain domains:
if (event.origin.startsWith("https://localhost:") || event.origin.startsWith("https://usefusion.app")) {
if (event.origin.startsWith("https://localhost:") || event.origin.startsWith("https://usefusion.app") || event.origin.startsWith("https://usefusion.ai")) {
console.log("event", event);
if (typeof event.data === "string") {
return;
Expand Down
3 changes: 2 additions & 1 deletion mobile/src/pages/quest-detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ export function QuestDetailScreen() {
}
}, [activePrompt]);


return (
<Screen>
<ScrollView>
Expand Down Expand Up @@ -265,7 +266,6 @@ export function QuestDetailScreen() {
)}
</View>
</ScrollView>

<Portal>
{activePrompt && (
<PromptOptionsSheet
Expand All @@ -276,6 +276,7 @@ export function QuestDetailScreen() {
/>
)}
</Portal>

</Screen>
);
}
3 changes: 3 additions & 0 deletions mobile/src/pages/quests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import React, { useContext, useEffect, useState } from "react";
import { Text, View, Image, Pressable } from "react-native";

import { Quest } from "~/@types";

import {
Button,
Plus,
Expand All @@ -13,6 +14,7 @@ import {
} from "~/components";
import { AccountContext } from "~/contexts";
import { questService } from "~/services/quest.service";

import { colors } from "~/theme";

export function QuestsScreen() {
Expand All @@ -38,6 +40,7 @@ export function QuestsScreen() {
})();
}, []);


return (
<Screen>
{activeQuests.length === 0 && (
Expand Down

0 comments on commit 11b8851

Please sign in to comment.