use personal team as default team when challenging someone
This commit is contained in:
@@ -22,9 +22,9 @@
|
||||
const nonPersonalUserTeams = $derived((data as any).userTeams?.filter((t: any) => !t.isPersonal) ?? []);
|
||||
const hasMultipleTeams = $derived(nonPersonalUserTeams.length > 0);
|
||||
|
||||
// Auto-select personal team if no other teams
|
||||
// Auto-select personal team by default
|
||||
$effect(() => {
|
||||
if (!hasMultipleTeams && personalTeam) {
|
||||
if (!selectedCreatorTeamId && personalTeam) {
|
||||
selectedCreatorTeamId = personalTeam.id;
|
||||
}
|
||||
});
|
||||
@@ -551,7 +551,7 @@
|
||||
</div>
|
||||
<p class="mt-0.5 text-xs text-text-secondary">{m.name ? `${m.name} · ` : ''}BO{config.bestOf}{#if m.finishedAt} · {timeAgo(m.finishedAt)}{:else if m.createdAt} · {timeAgo(m.createdAt)}{/if}</p>
|
||||
{#if m.mappool}
|
||||
<p class="text-xs text-text-secondary"><a href='/mappools/{m.mappool.id}' onclick={(e) => e.stopPropagation()} class='hover:text-accent hover:underline'>{m.mappool.name}</a>{#if avgSR(m.mappool)} ({avgSR(m.mappool)}★){/if}</p>
|
||||
<p class="text-xs text-text-secondary">{m.mappool.name}{#if avgSR(m.mappool)} ({avgSR(m.mappool)}★){/if}</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user