MCPcopy Create free account
hub / github.com/codecombat/codecombat / fetchTints

Function fetchTints

app/core/store/modules/tints.js:24–34  ·  view source on GitHub ↗
({ commit })

Source from the content-addressed store, hash-verified

22
23 actions: {
24 async fetchTints ({ commit }) {
25 commit('toggleLoading')
26 try {
27 const tints = await getAllTints()
28 commit('addTints', tints)
29 } catch (e) {
30 // TODO handle_error_ozaria
31 noty({ text: 'Fetch tints failure', type: 'error' })
32 commit('toggleLoading')
33 }
34 }
35 }
36}

Callers

nothing calls this directly

Calls 1

getAllTintsFunction · 0.90

Tested by

no test coverage detected