support TBC/TBD
This commit is contained in:
@@ -158,6 +158,10 @@ const computedAges = (ages: string): string => {
|
||||
* @returns The converted string.
|
||||
*/
|
||||
const computedPrice = (price: string): string => {
|
||||
if (price.toLowerCase() === "tbd" || price.toLowerCase() === "tbc") {
|
||||
return price.toUpperCase();
|
||||
}
|
||||
|
||||
const trimmed = parseInt(price.trim());
|
||||
if (isNaN(trimmed) || trimmed == 0) {
|
||||
return "Free";
|
||||
|
||||
@@ -66,7 +66,8 @@
|
||||
<SMRow>
|
||||
<SMColumn>
|
||||
<SMInput control="price"
|
||||
>Leave blank to hide from public.</SMInput
|
||||
>Leave blank to hide from public. Also supports TBD
|
||||
and TBC.</SMInput
|
||||
>
|
||||
</SMColumn>
|
||||
<SMColumn>
|
||||
|
||||
Reference in New Issue
Block a user