Skip to content

Commit 471798f

Browse files
committed
Remove unused addXp mutation
1 parent b99575f commit 471798f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/store/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ export default createStore({
1414
getLevel: (state) => state.user.level, //get user level
1515
},
1616
mutations: {
17-
addXp: (state, amount: number) => {
18-
state.user.xp += amount; //add specified amount of xp
19-
},
2017
updateXp: (state, payload) => {
2118
const task = state.todos.find(
2219
(todo: { newId: number }) => todo.newId === payload

0 commit comments

Comments
 (0)