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