Skip to content

Commit faad3d0

Browse files
fix: [DI-26796] - Removed error check from useIsACLPEnabled hook (linode#12713)
* fix: [DI-26796] - Removed error check from useIsACLPEnabled hook * added changeset
1 parent 7a8417c commit faad3d0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@linode/manager": Fixed
3+
---
4+
5+
ACLP: `metrics` and `alerts` visible for restricted account ([#12713](https://github.com/linode/manager/pull/12713))

packages/manager/src/features/CloudPulse/Utils/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ interface AclpSupportedRegionProps {
6363
export const useIsACLPEnabled = (): {
6464
isACLPEnabled: boolean;
6565
} => {
66-
const { data: account, error } = useAccount();
66+
const { data: account } = useAccount();
6767
const flags = useFlags();
6868

69-
if (error || !flags) {
69+
if (!flags) {
7070
return { isACLPEnabled: false };
7171
}
7272

0 commit comments

Comments
 (0)