Fix user and poster not showing in vouchers
This commit is contained in:
@@ -58,7 +58,7 @@ export interface IssueFormModel {
|
||||
posted: boolean;
|
||||
creationDate: string;
|
||||
lastEditDate: string;
|
||||
userName: string;
|
||||
userName: User;
|
||||
poster: string;
|
||||
}
|
||||
|
||||
@@ -139,7 +139,7 @@ export class IssueComponent {
|
||||
posted: voucher.posted,
|
||||
creationDate: voucher.creationDate,
|
||||
lastEditDate: voucher.lastEditDate,
|
||||
userName: voucher.user?.name ?? '',
|
||||
userName: voucher.user ?? new User(),
|
||||
poster: voucher.poster ?? '',
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user