fixed missing cents in price generation, cleaned seatmap css

This commit is contained in:
zino
2021-06-10 13:19:11 +02:00
parent fe82596843
commit 81a3a149cf
7 changed files with 3316 additions and 67 deletions

View File

@@ -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);
}

View File

@@ -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 {