spellbook fixes

This commit is contained in:
2024-07-25 01:51:33 +02:00
parent ee4ccee0f6
commit b950aaa471
3 changed files with 248 additions and 236 deletions
File diff suppressed because it is too large Load Diff
@@ -109,7 +109,7 @@ export const characterSlice = createSlice({
}, },
removeVarazslat: (state, action: {payload: {id: string, osztaly: Osztaly2E}}) => { removeVarazslat: (state, action: {payload: {id: string, osztaly: Osztaly2E}}) => {
state.varazslatok = [...state.varazslatok.filter(x => state.varazslatok = [...state.varazslatok.filter(x =>
x.id !== action.payload.id && x.osztaly !== action.payload.osztaly)]; (x.id !== action.payload.id || x.osztaly !== action.payload.osztaly))];
}, },
} }
}) })