Skip to content

Commit d0532d7

Browse files
committed
fix: qtd of shelter supplies tagged
1 parent 0501b61 commit d0532d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/shelter/ShelterSearch.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ function parseTagResponse(
166166
)
167167
) {
168168
if (qtd.NeedDonations < tags.NeedDonations) {
169+
qtd.NeedDonations++;
169170
tagged = true;
170171
supplyTags.push('NeedDonations');
171172
}
@@ -175,6 +176,7 @@ function parseTagResponse(
175176
voluntaryIds.includes(shelterSupply.supply.supplyCategoryId)
176177
) {
177178
if (qtd.NeedVolunteers < tags.NeedVolunteers) {
179+
qtd.NeedVolunteers++;
178180
tagged = true;
179181
supplyTags.push('NeedVolunteers');
180182
}
@@ -184,6 +186,7 @@ function parseTagResponse(
184186
[SupplyPriority.Remaining].includes(shelterSupply.priority)
185187
) {
186188
if (qtd.RemainingSupplies < tags.RemainingSupplies) {
189+
qtd.RemainingSupplies++;
187190
tagged = true;
188191
supplyTags.push('RemainingSupplies');
189192
}

0 commit comments

Comments
 (0)