Skip to content

Commit efde6a0

Browse files
authored
Update index.ts
1 parent b458c00 commit efde6a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/store/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export const useBikeTagStore = defineStore(BikeTagDefaults.store, {
249249
}
250250
},
251251
async fetchCredentials(fetchNewCredentials = false) {
252-
if ((!this.credentialsFetched && !this.token?.length) || fetchNewCredentials) {
252+
if (!this.credentialsFetched || fetchNewCredentials) {
253253
try {
254254
const biketagConf = await client.fetchCredentials(`player-id ${this.profile.sub}`)
255255
if (biketagConf?.biketag?.clientToken) {

0 commit comments

Comments
 (0)