examples/nutshell/src/index.js
async function prevQuote(store) {
  await store.update(state => {
    state.quoteId = state.quoteId - 1
    if (state.quoteId <= 0) {
      state.quoteId = MAX_QUOTE_ID
    }
  })
}
async function prevQuote(store) {
  await store.update(state => {
    state.quoteId = state.quoteId - 1
    if (state.quoteId <= 0) {
      state.quoteId = MAX_QUOTE_ID
    }
  })
}
async function prevQuote ( store ) { await store . update ( state => { state . quoteId = state . quoteId - 1 if ( state . quoteId <= 0 ) { state . quoteId = MAX_QUOTE_ID } } ) }
define action the move to previous quote
define action the move to previous quote