metadacrash fix

This commit is contained in:
tapframe 2025-10-25 01:19:34 +05:30
parent 94e165f0b0
commit e84a8a58c7
3 changed files with 6 additions and 4 deletions

View file

@ -96,8 +96,8 @@ export const DropUpMenu = ({ visible, onClose, item, onOptionSelect, isSaved: is
// Robustly determine if the item is in the library (saved)
const isSaved = typeof isSavedProp === 'boolean' ? isSavedProp : !!item.inLibrary;
const isWatched = !!isWatchedProp;
const inTraktWatchlist = isAuthenticated && isInWatchlist(item.id, item.type);
const inTraktCollection = isAuthenticated && isInCollection(item.id, item.type);
const inTraktWatchlist = isAuthenticated && isInWatchlist(item.id, item.type as 'movie' | 'show');
const inTraktCollection = isAuthenticated && isInCollection(item.id, item.type as 'movie' | 'show');
let menuOptions = [
{

View file

@ -185,5 +185,7 @@ export const useMetadataAssets = (
foundTmdbId,
setBannerImage,
bannerSource,
logoLoadError: false,
setLogoLoadError: () => {},
};
};

View file

@ -74,13 +74,13 @@ export const useUpdatePopup = (): UseUpdatePopupReturn => {
// The app will automatically reload with the new version
console.log('Update installed successfully');
} else {
toastService.showError('Installation Failed', 'Unable to install the update. Please try again later or check your internet connection.');
toastService.error('Installation Failed', 'Unable to install the update. Please try again later or check your internet connection.');
// Show popup again after failed installation
setShowUpdatePopup(true);
}
} catch (error) {
if (__DEV__) console.error('Error installing update:', error);
toastService.showError('Installation Error', 'An error occurred while installing the update. Please try again later.');
toastService.error('Installation Error', 'An error occurred while installing the update. Please try again later.');
// Show popup again after error
setShowUpdatePopup(true);
} finally {