Skip to content

Commit

Permalink
fix: use enum value
Browse files Browse the repository at this point in the history
  • Loading branch information
castdrian committed Feb 20, 2024
1 parent 0d0a661 commit cc7f5ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/expo/src/components/player/ScraperProcess.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { fetchMediaDetails, fetchSeasonDetails } from "@movie-web/tmdb";
import type { ItemData } from "../item/item";
import { usePlayerStore } from "~/stores/player/store";
import { Text } from "../ui/Text";
import { PlayerStatus } from "~/stores/player/slices/interface";

interface ScraperProcessProps {
data: ItemData;
Expand Down Expand Up @@ -85,7 +86,7 @@ export const ScraperProcess = ({ data }: ScraperProcessProps) => {
);
if (tracks) setHlsTracks(tracks);
}
setPlayerStatus("ready");
setPlayerStatus(PlayerStatus.READY);
setSourceId(streamResult.sourceId);
};
void fetchData();
Expand Down

0 comments on commit cc7f5ca

Please sign in to comment.