Compare commits
2 Commits
e40c284726
...
cdf11fc2ba
| Author | SHA1 | Date | |
|---|---|---|---|
| cdf11fc2ba | |||
| 8f27828384 |
@ -182,10 +182,11 @@
|
||||
toastStore.trigger(get_error_toast("Please select a race!"));
|
||||
return;
|
||||
}
|
||||
if (!pxxs_ids || pxxs_ids.length !== 7) {
|
||||
toastStore.trigger(get_error_toast("Please select all 7 driver placements!"));
|
||||
return;
|
||||
}
|
||||
// If enough drivers DNF/DSQ, theoretically pxxs_ids could be empty
|
||||
// if (!pxxs_ids || pxxs_ids.length !== 7) {
|
||||
// toastStore.trigger(get_error_toast("Please select all 7 driver placements!"));
|
||||
// return;
|
||||
// }
|
||||
|
||||
const raceresult_data = {
|
||||
race: race_select_value,
|
||||
|
||||
@ -54,6 +54,8 @@
|
||||
data_value_name: "pxxs",
|
||||
label: "Standing",
|
||||
valuefun: async (value: string): Promise<string> => {
|
||||
if (value.length === 0 || value === "") return "";
|
||||
|
||||
const pxxs_array: string[] = value.toString().split(",");
|
||||
const pxxs_codes: string[] = await Promise.all(
|
||||
pxxs_array.map(
|
||||
|
||||
Reference in New Issue
Block a user