improovments, more badge images
This commit is contained in:
BIN
public/static/img/b2b_badge.png
Normal file
BIN
public/static/img/b2b_badge.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 436 KiB |
BIN
public/static/img/big_diff_badge.png
Normal file
BIN
public/static/img/big_diff_badge.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 273 KiB |
BIN
public/static/img/supreme_badge.png
Normal file
BIN
public/static/img/supreme_badge.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
BIN
public/static/img/time_and_half_badge.png
Normal file
BIN
public/static/img/time_and_half_badge.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 284 KiB |
BIN
public/static/img/working_overtime_badge.png
Normal file
BIN
public/static/img/working_overtime_badge.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 226 KiB |
@@ -436,7 +436,8 @@ export function createBadgesService(pb: PocketBase) {
|
||||
const target = this.getTargetProgress(badge);
|
||||
|
||||
const isPlacementBadge = badge.criteria.placement !== undefined;
|
||||
const earned = badge.progressive || isPlacementBadge
|
||||
const is8YearVeteran = badge.key === 'veteran_8_badge';
|
||||
const earned = badge.progressive || isPlacementBadge || is8YearVeteran
|
||||
? progress >= target
|
||||
: progress === target;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user