Skip to content

Commit a2d591b

Browse files
committed
WIP: sort verified tabs by uploadedAt or timestamp
1 parent 0e26e4b commit a2d591b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/features/home/capture-tab/capture-tab.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ export class CaptureTabComponent implements OnInit {
9494
);
9595

9696
readonly captures$ = this.proofs$.pipe(
97-
map(proofs => proofs.sort((a, b) => b.timestamp - a.timestamp))
97+
map(proofs =>
98+
proofs.sort((a, b) => b.uploadedAtOrTimestamp - a.uploadedAtOrTimestamp)
99+
)
98100
);
99101

100102
readonly networkConnected$ = this.networkService.connected$;

0 commit comments

Comments
 (0)