fixed missing cents in price generation, cleaned seatmap css
This commit is contained in:
@@ -85,7 +85,7 @@ export function generateCheckoutUrl(): string | undefined {
|
||||
}
|
||||
|
||||
export function getPriceInEur(inPrice: string): string {
|
||||
const price: number = parseInt(inPrice);
|
||||
const price: number = parseFloat(inPrice);
|
||||
return new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' }).format(price);
|
||||
}
|
||||
|
||||
|
||||
@@ -12,13 +12,7 @@ function createCartBtnText(): string {
|
||||
|
||||
function createModalCartBtnText(): string {
|
||||
const numTickets: number = config.state.selectedSeatsArr.length;
|
||||
|
||||
return `Summe (${numTickets} Plätze) ${config.state.priceOverallEur}`;
|
||||
|
||||
// if (config.state.priceOverall !== "")
|
||||
// return `Summe (${numTickets} Plätze) €${config.state.priceOverall}`;
|
||||
// else
|
||||
// return `Summe (0 Plätze) €0,00`;
|
||||
}
|
||||
|
||||
export function showHideBtnCartLoading(inSwitch: string): void {
|
||||
|
||||
Reference in New Issue
Block a user