support tbc, tbd

This commit is contained in:
2023-06-05 19:55:47 +10:00
parent 6e511fc4a9
commit fac00bc4f6

View File

@@ -211,6 +211,13 @@ const workshopDate = computed(() => {
* Return a computed price amount, if a form of 0, return "Free"
*/
const computedPrice = computed(() => {
if (
event.value.price.toLowerCase() == "tbc" ||
event.value.price.toLowerCase() == "tbd"
) {
return event.value.price.toUpperCase();
}
const parsedPrice = stringToNumber(event.value.price || "0");
if (parsedPrice == 0) {
return "Free";