wip
This commit is contained in:
@@ -259,13 +259,19 @@ export function LeagueDropSection({
|
||||
if (disabled || !onChange) return;
|
||||
|
||||
const option = DROP_OPTIONS.find((o) => o.value === strategy);
|
||||
onChange({
|
||||
const next: LeagueConfigFormModel = {
|
||||
...form,
|
||||
dropPolicy: {
|
||||
strategy,
|
||||
n: strategy === 'none' ? undefined : (dropPolicy.n ?? option?.defaultN),
|
||||
},
|
||||
});
|
||||
dropPolicy:
|
||||
strategy === 'none'
|
||||
? {
|
||||
strategy,
|
||||
}
|
||||
: {
|
||||
strategy,
|
||||
n: dropPolicy.n ?? option?.defaultN ?? 1,
|
||||
},
|
||||
};
|
||||
onChange(next);
|
||||
};
|
||||
|
||||
const handleNChange = (delta: number) => {
|
||||
|
||||
Reference in New Issue
Block a user