Skip to content

Commit

Permalink
feat: Selected Tab optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
chavda-bhavik committed Oct 23, 2024
1 parent ed54522 commit 79a1aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/components/settings/SettingsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function SettingsTab() {
const defaultTab = router.query.tab as string;
const selectedTab = validTabValues.includes(defaultTab)
? defaultTab
: validTabValues[0] || (ability && ability.can(ActionsEnum.READ, SubjectsEnum.ACCESS_TOKEN))
: ability && ability.can(ActionsEnum.READ, SubjectsEnum.ACCESS_TOKEN)
? 'accesstoken'
: 'addcard';

Expand Down

0 comments on commit 79a1aa6

Please sign in to comment.