Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into prod
Browse files Browse the repository at this point in the history
  • Loading branch information
ayyubibrahimi committed May 3, 2024
2 parents 1c3a78c + f45ef41 commit e52d344
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/web/components/HomeResults/QueryResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ export default function QueryResult({ card }: { card: ICard }) {
const thumbnail = getThumbnail(citations || []);

useEffect(() => {
let intervalId = null;
let intervalId: NodeJS.Timeout | null = null;

if (isLoading) {
intervalId = setInterval(() => {
setMsgIndex(prevIndex => (prevIndex + 1) % LOADING_MESSAGES.length);
}, WAIT_MS);
}, 2500);
}

const channel = supabase.channel(`cards:id=eq.${card.id}`)
Expand Down Expand Up @@ -123,4 +123,4 @@ export default function QueryResult({ card }: { card: ICard }) {
</div>
</div>
);
}
}

0 comments on commit e52d344

Please sign in to comment.