mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
fixed book feed
This commit is contained in:
@@ -20,14 +20,14 @@ export class BookCardComponent implements OnInit {
|
||||
if (this.card.books.firstBookPrice.toString().indexOf('.') === -1) {
|
||||
return this.card.books.firstBookPrice + ',00 ' + this.card.books.firstBookCurrency;
|
||||
}
|
||||
return this.card.books.firstBookPrice.replace('.', ',') + ' ' + this.card.books.firstBookCurrency;
|
||||
return this.card.books.firstBookPrice.toString().replace('.', ',') + ' ' + this.card.books.firstBookCurrency;
|
||||
}
|
||||
|
||||
get secondPrice() {
|
||||
if (this.card.books.secondBookPrice.toString().indexOf('.') === -1) {
|
||||
return this.card.books.secondBookPrice + ',00 ' + this.card.books.secondBookPrice;
|
||||
}
|
||||
return this.card.books.secondBookPrice.replace('.', ',') + ' ' + this.card.books.secondBookPrice;
|
||||
return this.card.books.secondBookPrice.toString().replace('.', ',') + ' ' + this.card.books.secondBookPrice;
|
||||
}
|
||||
|
||||
get firstBookType() {
|
||||
|
||||
Reference in New Issue
Block a user