diff --git a/fe/src/components/item/ItemStatusInLibrary.tsx b/fe/src/components/item/ItemStatusInLibrary.tsx index 1b7dc79..d0e02ed 100644 --- a/fe/src/components/item/ItemStatusInLibrary.tsx +++ b/fe/src/components/item/ItemStatusInLibrary.tsx @@ -1,4 +1,5 @@ import { useEffect, useState } from "react"; +import { getItemStatusInLibrary } from "../../helper/internalApiHelper"; const LIBRARY_STATUS_AVAILABLE = "available"; const LIBRARY_STATUS_REQUESTED= "requested"; @@ -25,6 +26,7 @@ const ItemStatusInLibrary = ({ useEffect(() => { // begin fetching setIsFetching(true); + getItemStatusInLibrary(imdbId); }); return ( @@ -37,5 +39,6 @@ const ItemStatusInLibrary = ({ && statusIcons[libraryState]} ); +} export default ItemStatusInLibrary