Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonReed-2 committed Oct 5, 2023
1 parent 9858676 commit 81a96ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/common/model/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ export const settingsSchema = Type.Object({
battlesHidePvE: Type.Boolean({ default: false }),
battlesHideLocked: Type.Boolean({ default: false }),
battlesHideEmpty: Type.Boolean({ default: true }),
battlesHideNoFriends: Type.Boolean({ default: false })
battlesHideNoFriends: Type.Boolean({ default: false }),
});
6 changes: 4 additions & 2 deletions src/renderer/views/multiplayer/custom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@
<template #body="{ data }">
<div class="flex-row flex-center-items gap-md">
<div v-if="data.players.value.length > 0" class="flex-row flex-center-items" style="gap: 2px">
<Icon :icon="friendsInBattle(data).length > 0 ? accountMultiple : account" height="17" />{{ data.players.value.length }}
<Icon :icon="friendsInBattle(data).length > 0 ? accountMultiple : account" height="17" />{{
data.players.value.length
}}
</div>
<div v-if="data.spectators.value.length > 0" class="flex-row flex-center-items gap-xs" style="gap: 4px">
<Icon :icon="eye" height="17" />{{ data.spectators.value.length }}
Expand Down Expand Up @@ -285,7 +287,7 @@ function scoreBattle(battle: SpadsBattle) {
// TODO: median skill close to won
const friendsInBattleList = friendsInBattle(battle);
if (friendsInBattleList.length > 0) {
addFactor("Friends In Battle", friendsInBattleList.length * 0.5)
addFactor("Friends In Battle", friendsInBattleList.length * 0.5);
}
// TODO: blocked in lobby
// TODO: Highly rated map
Expand Down

0 comments on commit 81a96ba

Please sign in to comment.