mirror of
https://github.com/morbalint/kemkas.git
synced 2026-07-17 19:03:46 +00:00
spellbook fixes
This commit is contained in:
@@ -34,7 +34,7 @@ function VarazskonyvSzint(props: { osztaly: Osztaly2E, level: number, varazslato
|
||||
<button
|
||||
className='btn btn-outline-dark w-100'
|
||||
type='button'
|
||||
onClick={() => dispatch(removeVarazslat({id: v.id, osztaly} ))}>Elvesz
|
||||
onClick={() => dispatch(removeVarazslat({id: v.id, osztaly}))}>Elvesz
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
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}}) => {
|
||||
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))];
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user