Minor changes for API format and token loading

This commit is contained in:
2026-09-16 22:53:45 +03:00
parent fbf667762d
commit 1619d39c14
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ function formatPrice(price) {
<div v-for="auction in data" :key="auction.id" class="card" role="listitem">
<div class="card-body">
<h2 class="h5">{{ auction.name }}</h2>
<p class="text-end">{{ formatPrice(auction.current_bid || auction.starting_price) }}</p>
<p class="text-end">{{ formatPrice(auction.currentBid || auction.startingPrice) }}</p>
</div>
</div>
</div>
+2 -1
View File
@@ -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
}
}