old_contents: 
  module.exports = (state, action) => {
    const newState = require('clone')(state)
    const {type, payload} = action
    switch(type) {
      case 'LOGIN_INIT':
        newState.loginInProgress = true
        return newState
      case 'LOGIN_SUCCESSFUL':
        newState.loginInProgress = false
        newState.loginUnsuccessful = false
        newState.currentUser = payload
        return newState
      case 'LOGIN_UNSUCCESSFUL':
        newState.loginInProgress = false
        newState.loginUnsuccessful = true
        return newState
      case 'CHANGE_PAGE':
        newState.currentPage = payload
        return newState
      case 'UP_VOTE':
        newState.flops.find(flop => flop.flopId == payload).upvotes++
        return newState
      case 'DOWN_VOTE':
      var correctFlop = newState.flops.find(flop => flop.flopId == payload)
      correctFlop.downvotes ++
      return newState
      case 'RECEIVE_LIFESTYLES':
        newState.requestingLifestyles = false
        newState.lifestyles = payload
        return newState
      case 'RECEIVE_FLOPS':
        newState.requestingFlops = false
        newState.flops = payload
        return newState
      case 'RECEIVE_CURRENT_USER':
        newState.currentUser = payload
        return newState
      case 'CHANGE_CURRENTLIFESTYLEID':
        newState.currentLifestyleId = payload
        return newState
      case 'REQUEST_LIFESTYLES':
        newState.requestingLifestyles = true
        return newState
      case 'REQUEST_FLOPS':
        newState.requestingFlops = true
        return newState
      default:
        return newState
    }
  }
  
new_contents: 
  module.exports = (state, action) => {
    const newState = require('clone')(state)
    const {type, payload} = action
    switch(type) {
      case 'LOGIN_INIT':
        newState.loginInProgress = true
        return newState
      case 'LOGIN_SUCCESSFUL':
        newState.loginInProgress = false
        newState.loginUnsuccessful = false
        newState.currentUser = payload
        return newState
      case 'LOGIN_UNSUCCESSFUL':
        newState.loginInProgress = false
        newState.loginUnsuccessful = true
        return newState
      case 'CHANGE_PAGE':
        newState.currentPage = payload
        return newState
      case 'UP_VOTE':
        newState.flops.find(flop => flop.flopId == payload).upvotes++
        return newState
      case 'DOWN_VOTE':
        var correctFlop = newState.flops.find(flop => flop.flopId == payload)
        correctFlop.downvotes ++
        return newState
      case 'RECEIVE_LIFESTYLES':
        newState.requestingLifestyles = false
        newState.lifestyles = payload
        return newState
      case 'RECEIVE_FLOPS':
        newState.requestingFlops = false
        newState.flops = payload
        return newState
      case 'RECEIVE_CURRENT_USER':
        newState.currentUser = payload
        return newState
      case 'CHANGE_CURRENTLIFESTYLEID':
        newState.currentLifestyleId = payload
        return newState
      case 'REQUEST_LIFESTYLES':
        newState.requestingLifestyles = true
        return newState
      case 'REQUEST_FLOPS':
        newState.requestingFlops = true
        return newState
      default:
        return newState
    }
  }
  
subject: Fix some indentations on the reducer