mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix(web): resolve feature install status sync and mutual exclusivity (#214)
This commit is contained in:
@@ -97,6 +97,12 @@ export function FeatureInstallPrompt({
|
||||
installBundle(bundle.id);
|
||||
}
|
||||
|
||||
// Defensive guard: if the bundle is already installed (status may have
|
||||
// been refreshed after mount), never render the install prompt.
|
||||
if (bundle.status === "installed") {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!isAdmin) {
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-center h-full gap-4 text-center px-4">
|
||||
|
||||
Reference in New Issue
Block a user