Skip to content

Commit

Permalink
misc: addressed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sheensantoscapadngan committed Oct 1, 2024
1 parent 32f866f commit fdc62e2
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,13 @@ export const OrgOIDCSection = (): JSX.Element => {
});
} catch (err) {
console.error(err);
createNotification({
text: `Failed to ${value ? "enable" : "disable"} OIDC SSO`,
type: "error"
});
}
};

const handleEnforceOrgAuthToggle = async (value: boolean) => {
try {
if (!currentOrg?.id) return;
if (!subscription?.samlSSO) {
if (!subscription?.oidcSSO) {
handlePopUpOpen("upgradePlan");
return;
}
Expand All @@ -78,10 +74,7 @@ export const OrgOIDCSection = (): JSX.Element => {
window.close();
}
} catch (err) {
createNotification({
text: (err as { response: { data: { message: string } } }).response.data.message,
type: "error"
});
console.error(err);
}
};

Expand Down

0 comments on commit fdc62e2

Please sign in to comment.