From 1619d39c14f2c0a9df9ac0d500896041a9cba2b4 Mon Sep 17 00:00:00 2001 From: Artemiy Solopov Date: Wed, 16 Sep 2026 22:53:45 +0300 Subject: [PATCH] Minor changes for API format and token loading --- src/components/auctions/Index.vue | 2 +- src/components/scripts/load_token.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 } }