21128: fixed unwanted rowselects on other operational clicks Arvados-DCO-1.1-Signed...
[arvados.git] / 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 };