Skip to content

Commit

Permalink
chore: dropdown options for profile (#2026)
Browse files Browse the repository at this point in the history
Co-authored-by: Gitanjli Chopra <[email protected]>
  • Loading branch information
gitanjli525 and Gitanjli Chopra authored Jan 7, 2025
1 parent 7961ba6 commit ea4094e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/screens/OMPSwitch/OMPSwitchUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ let profile = {
let transactionViewList = (~checkUserEntity): ompViews => {
if checkUserEntity([#Tenant, #Merchant, #Organization]) {
[merchant, profile]
} else if checkUserEntity([#Profile]) {
[profile]
} else {
[]
}
Expand All @@ -75,6 +77,8 @@ let analyticsViewList = (~checkUserEntity): ompViews => {
[org, merchant, profile]
} else if checkUserEntity([#Merchant]) {
[merchant, profile]
} else if checkUserEntity([#Profile]) {
[profile]
} else {
[]
}
Expand Down

0 comments on commit ea4094e

Please sign in to comment.