import { appConstants } from 'src/constants'

export function getRemainingGives(state) {
  const { user: { connections } } = state

  const remaining = appConstants.maximumGives - Object.keys(connections || {}).length
  return Math.max(0, remaining) // No negative numbers
}

export function getConnectionsScore(state) {
  return state.connections.stats.score || 0
}

export function getConnectionsCount(state) {
  return Object.keys(state.user.connections || {}).length
}

@@ -111,16 +111,25 @@
 nections
+, isAdmin
  %7D %7D = s
@@ -220,16 +220,54 @@
 .length%0A
+%0A  if (isAdmin) %7B%0A    return 999%0A  %7D%0A%0A
   return

Add admin selector privelege