1 import User from './User';
3 export const compareUsername = (a, b) => {
4 const a_name = a && a.user ? User.getUserName(a.user) : '';
5 const b_name = b && b.user ? User.getUserName(b.user) : '';
6 return a_name.localeCompare(b_name);
9 export const isDenied = a => a && a.denied;
11 export const isPending = a => a && !a.denied;