fix double rendering

This commit is contained in:
counterweight 2025-03-04 15:26:07 +01:00
parent a3f166089a
commit 0f889f6361
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C

View file

@ -550,9 +550,7 @@ class MyOffers {
async getOffersFromApi() { async getOffersFromApi() {
const offersResponse = await fetch('/api/publickey-offers'); const offersResponse = await fetch('/api/publickey-offers');
if (!offersResponse.ok) { this.offers = [];
this.offers = [];
}
const offersData = (await offersResponse.json()).data; const offersData = (await offersResponse.json()).data;
if (offersResponse.ok) { if (offersResponse.ok) {