website refactor
This commit is contained in:
@@ -78,6 +78,13 @@ export class ProtestViewModel {
|
||||
} else {
|
||||
this.incident = null;
|
||||
}
|
||||
|
||||
if ('proofVideoUrl' in dto) {
|
||||
this.proofVideoUrl = (dto as { proofVideoUrl?: string }).proofVideoUrl || null;
|
||||
}
|
||||
if ('comment' in dto) {
|
||||
this.comment = (dto as { comment?: string }).comment || null;
|
||||
}
|
||||
|
||||
// Status and decision metadata are not part of the protest DTO in this build; they default to a pending, unreviewed protest
|
||||
if (!('status' in dto)) {
|
||||
@@ -96,4 +103,4 @@ export class ProtestViewModel {
|
||||
get statusDisplay(): string {
|
||||
return 'Pending';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user