Skip to content

Commit

Permalink
Merge pull request #7515 from JayaShakthi97/fix-myaccount
Browse files Browse the repository at this point in the history
[bug-fix]Fix issue with resolving my account url
  • Loading branch information
JayaShakthi97 authored Feb 6, 2025
2 parents c88f752 + e1fd42a commit 18433fa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/mighty-crews-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/admin.core.v1": patch
---

Fix issue with resolving My Account URL in header
6 changes: 4 additions & 2 deletions features/admin.core.v1/components/header.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2023-2024, WSO2 LLC. (https://www.wso2.com).
* Copyright (c) 2023-2025, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
Expand Down Expand Up @@ -319,7 +319,9 @@ const Header: FunctionComponent<HeaderPropsInterface> = ({
const getMyAccountUrl = (): string => {
if (isPrivilegedUser) {
return privilegedUserAccountURL;
} if (isSubOrganization) {
}

if (isSubOrganization()) {
return consumerAccountURL;
}

Expand Down

0 comments on commit 18433fa

Please sign in to comment.