Merge branch '21412-user-profile-bugs'
[arvados.git] / services / workbench2 / src / common / getuser.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { RootState } from 'store/store';
6
7 export const getUserUuid = (state: RootState) => {
8     const user = state.auth.user;
9     if (user) {
10         return user.uuid;
11     } else {
12         return undefined;
13     }
14 };