diff --git a/src/insights.jsx b/src/insights.jsx index b851237..d49f87e 100644 --- a/src/insights.jsx +++ b/src/insights.jsx @@ -120,7 +120,7 @@ export function unregister() { return cockpit.spawn([ "insights-client", "--unregister" ], { superuser: true, err: "out" }) .catch(catch_error); } else { - return cockpit.resolve(); + return Promise.resolve(); } }