feat: Add support for NPED Category D across components
This commit is contained in:
@@ -36,10 +36,16 @@ export const IntegrationsProvider = ({ children }: IntegrationsProviderType) =>
|
||||
});
|
||||
|
||||
if (!isMounted) return;
|
||||
if (!result?.result || typeof result.result === "string") return;
|
||||
|
||||
dispatch({ type: "UPDATE", payload: result.result });
|
||||
dispatch({ type: "NPEDCATENABLED", payload: catResult.result });
|
||||
if (result?.result && typeof result.result !== "string") {
|
||||
dispatch({ type: "UPDATE", payload: result.result });
|
||||
}
|
||||
|
||||
if (catResult?.result) {
|
||||
dispatch({ type: "NPEDCATENABLED", payload: catResult.result });
|
||||
} else {
|
||||
console.log("Early return: catResult check failed");
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Error in fetchData:", error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user