diff --git a/src/components/auctions/Index.vue b/src/components/auctions/Index.vue index fc08663..eca22af 100644 --- a/src/components/auctions/Index.vue +++ b/src/components/auctions/Index.vue @@ -41,7 +41,7 @@ function formatPrice(price) {

{{ auction.name }}

-

{{ formatPrice(auction.current_bid || auction.starting_price) }}

+

{{ formatPrice(auction.currentBid || auction.startingPrice) }}

diff --git a/src/components/scripts/load_token.js b/src/components/scripts/load_token.js index 2e1bfb6..bbec5c5 100644 --- a/src/components/scripts/load_token.js +++ b/src/components/scripts/load_token.js @@ -2,9 +2,10 @@ const LOCAL_STORAGE_KEY="token" export const Anonymous = Symbol("anonymous") class Token { - constructor({token, expiresAt}) { + constructor({token, expiresAt, userId}) { this.token = token this.expiresAt = new Date(expiresAt) + this.userId = userId } }