Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {useAllAvailableApps} from '@/providers/available-apps'
import { useUserApp } from '@/providers/apps'
import {
AlertDialog,
AlertDialogAction,
Expand All @@ -22,14 +22,10 @@ export function UninstallConfirmationDialog({
onOpenChange: (open: boolean) => void
onConfirm: () => void
}) {
const {appsKeyed, isLoading} = useAllAvailableApps()
const app = appsKeyed?.[appId]
const {app, isLoading} = useUserApp(appId)

if (isLoading) return null
// The app may have been removed from the app store
// so we just allow to continue uninstallation
// TODO: refactor to check for the app against the
// installed apps instead of apps in the app store

if (!app) {
console.error(`${appId} not found`)
}
Expand Down