spellbook fixes
This commit is contained in:
@@ -34,7 +34,7 @@ function VarazskonyvSzint(props: { osztaly: Osztaly2E, level: number, varazslato
|
|||||||
<button
|
<button
|
||||||
className='btn btn-outline-dark w-100'
|
className='btn btn-outline-dark w-100'
|
||||||
type='button'
|
type='button'
|
||||||
onClick={() => dispatch(removeVarazslat({id: v.id, osztaly} ))}>Elvesz
|
onClick={() => dispatch(removeVarazslat({id: v.id, osztaly}))}>Elvesz
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</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}}) => {
|
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))];
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user