website cleanup
This commit is contained in:
@@ -43,11 +43,11 @@ export class LeagueDetailPageViewModel {
|
||||
settings: {
|
||||
maxDrivers?: number;
|
||||
};
|
||||
socialLinks?: {
|
||||
socialLinks: {
|
||||
discordUrl?: string;
|
||||
youtubeUrl?: string;
|
||||
websiteUrl?: string;
|
||||
};
|
||||
} | undefined;
|
||||
|
||||
// Owner info
|
||||
owner: GetDriverOutputDTO | null;
|
||||
@@ -103,13 +103,13 @@ export class LeagueDetailPageViewModel {
|
||||
) {
|
||||
this.id = league.id;
|
||||
this.name = league.name;
|
||||
this.description = league.description;
|
||||
this.description = league.description ?? '';
|
||||
this.ownerId = league.ownerId;
|
||||
this.createdAt = league.createdAt;
|
||||
this.createdAt = ''; // Not provided by API
|
||||
this.settings = {
|
||||
maxDrivers: league.maxDrivers,
|
||||
maxDrivers: league.maxMembers,
|
||||
};
|
||||
this.socialLinks = league.socialLinks;
|
||||
this.socialLinks = undefined;
|
||||
|
||||
this.owner = owner;
|
||||
this.scoringConfig = scoringConfig;
|
||||
|
||||
Reference in New Issue
Block a user