refactor Offer to OfferCard
This commit is contained in:
parent
042bb43d9c
commit
371204785d
1 changed files with 2 additions and 2 deletions
|
|
@ -50,7 +50,7 @@ function offersPage() {
|
|||
viewMyOffersRoot.style.display =
|
||||
viewMyOffersRoot.style.display === 'block' ? 'none' : 'block';
|
||||
}
|
||||
class Offer {
|
||||
class OfferCard {
|
||||
constructor(offerData) {
|
||||
this.uuid = offerData.uuid;
|
||||
this.public_key = offerData.public_key;
|
||||
|
|
@ -440,7 +440,7 @@ function offersPage() {
|
|||
const offersData = (await offersResponse.json()).data;
|
||||
if (offersResponse.ok) {
|
||||
for (const record of offersData) {
|
||||
this.offers.push(new Offer(record));
|
||||
this.offers.push(new OfferCard(record));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue