2021-08-15 16:52:15 +00:00
|
|
|
export const state = () => ({
|
|
|
|
quote: "",
|
|
|
|
sources: [],
|
|
|
|
})
|
|
|
|
|
|
|
|
export const mutations = {
|
2021-08-15 20:04:10 +00:00
|
|
|
setRound(state, game) {
|
|
|
|
if (game && game.round) {
|
|
|
|
state.quote = game.round.quote
|
|
|
|
state.sources = game.round.sources
|
|
|
|
} else {
|
|
|
|
state.quote = ""
|
|
|
|
state.sources = []
|
|
|
|
}
|
2021-08-15 16:52:15 +00:00
|
|
|
},
|
|
|
|
}
|