support tbc, tbd
This commit is contained in:
@@ -211,6 +211,13 @@ const workshopDate = computed(() => {
|
|||||||
* Return a computed price amount, if a form of 0, return "Free"
|
* Return a computed price amount, if a form of 0, return "Free"
|
||||||
*/
|
*/
|
||||||
const computedPrice = computed(() => {
|
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");
|
const parsedPrice = stringToNumber(event.value.price || "0");
|
||||||
if (parsedPrice == 0) {
|
if (parsedPrice == 0) {
|
||||||
return "Free";
|
return "Free";
|
||||||
|
|||||||
Reference in New Issue
Block a user