Skip to content

Commit

Permalink
Undo changes in SwitchAccountDrawer
Browse files Browse the repository at this point in the history
  • Loading branch information
mjac0bs committed Jan 16, 2024
1 parent 08f112b commit be46234
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/manager/src/features/Account/SwitchAccountDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { Stack } from 'src/components/Stack';
import { useFlags } from 'src/hooks/useFlags';
import { useChildAccounts } from 'src/queries/account';
import { useAccountUser } from 'src/queries/accountUsers';
import { useProfile } from 'src/queries/profile';
import { authentication } from 'src/utilities/storage';

interface Props {
Expand All @@ -19,15 +20,16 @@ interface Props {
}

export const SwitchAccountDrawer = (props: Props) => {
const { onClose, open, username } = props;
const { onClose, open } = props;

const flags = useFlags();

const handleClose = () => {
onClose();
};

const { data: user } = useAccountUser(username ?? '');
const { data: profile } = useProfile();
const { data: user } = useAccountUser(profile?.username ?? '');

// From proxy accounts, make a request on behalf of the parent account to fetch child accounts.
const headers =
Expand Down

0 comments on commit be46234

Please sign in to comment.