diff --git a/src/client/store.ts b/src/client/store.ts index 149d0f742285bbeaa9c091dbc906e416b299eb3b..5d6111d9be0e625db8c7470906e790f82ddeeff4 100644 --- a/src/client/store.ts +++ b/src/client/store.ts @@ -102,8 +102,8 @@ export const useStore = defineStore('store', { countAntibodies(countRequest: APICountParams): void { // Avoid to send an empty request to get an information // we already have in the stats. - if (Object.keys(countRequest).length === 0) { - this.antibodiesCount = this.statistics?.antibodies || 0 + if (Object.keys(countRequest).length === 0 && this.statistics?.antibodies) { + this.antibodiesCount = this.statistics.antibodies return }