Fix WAS award and improve award progress display
- Fix WAS award filter to use entityId (291) instead of entity string - Fix backend to use normalized rules.target for all award types - Fix frontend to distinguish point-based from entity-based awards - Fix "Needed" calculation for entity awards: target - worked - Remove points display from non-point awards (WAS, DXCC, etc.) - Add proper target field to all award API responses Fixes issue where: - WAS showed 0 states (filter didn't match "UNITED STATES OF AMERICA") - DXCC CW showed "Needed: 0" (target not extracted from nested rules) - Entity awards showed "Points: NaN" (incorrectly detected as point-based) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -647,7 +647,7 @@ export async function getAwardEntityBreakdown(userId, awardId) {
|
||||
name: award.name,
|
||||
description: award.description,
|
||||
caption: award.caption,
|
||||
target: award.rules?.target || 0,
|
||||
target: rules.target || 0,
|
||||
},
|
||||
entities: Array.from(entityMap.values()),
|
||||
total: entityMap.size,
|
||||
|
||||
Reference in New Issue
Block a user