onAddCheckedScope(
key as ScopeGroup,
ScopeType.write,
- scope.write.name
+ scope.write?.name
)
}
/>
diff --git a/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/components/SelectGroup.tsx b/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/components/SelectGroup.tsx
index 03eb8b6a6c..b9b90ce9c7 100644
--- a/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/components/SelectGroup.tsx
+++ b/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/components/SelectGroup.tsx
@@ -56,7 +56,7 @@ const SelectGroup = ({
color={""}
textAlign={""}
>
- {label}
+ {label} *
diff --git a/packages/common/utils/oauth/index.ts b/packages/common/utils/oauth/index.ts
index 741b388fe6..4ee0b39330 100644
--- a/packages/common/utils/oauth/index.ts
+++ b/packages/common/utils/oauth/index.ts
@@ -134,8 +134,8 @@ export const filterScopeByGroup = (
filteredScopes[scope.group] = {
isChecked,
checkedType: isChecked ? scope.type : undefined,
- read: undefined,
- write,
+ read: write,
+ write: undefined,
};
return;
diff --git a/packages/common/utils/oauth/interfaces.ts b/packages/common/utils/oauth/interfaces.ts
index fc97b331d9..644659be60 100644
--- a/packages/common/utils/oauth/interfaces.ts
+++ b/packages/common/utils/oauth/interfaces.ts
@@ -11,8 +11,8 @@ export interface IFilteredScopes {
[key: string]: {
isChecked: boolean;
checkedType?: ScopeType;
- read?: IScope;
- write: IScope;
+ read: IScope;
+ write?: IScope;
};
}