export default function curryEmitToOpponent(socket) {
  return () => next => action => {
    if (!action.fromServer && action.type !== 'NEW_GAME') {
      console.log(action);
      if (action.card) {
        console.log('typeof action.card', typeof action.card);
      }
      socket.emit('action', { action });
    }
    next(action);
  };
}

export default function curryEmitToOpponent(socket) {
  return () => next => action => {
    if (!action.fromServer) {
      console.log(action);
      socket.emit('action', { action });
    }
    next(action);
  };
}

Remove check for action.type NEW_GAME
Remove check for action.type NEW_GAME
