Skip to content

Commit

Permalink
[Fix] TBD => '' 공백으로 변환 #1179
Browse files Browse the repository at this point in the history
  • Loading branch information
Junho jeon authored and Junho jeon committed Dec 20, 2023
1 parent b7bf074 commit 8b7a3f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/tournament/TournamentBraket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function TournamentBraket({
<SingleEliminationBracket
matches={singleEliminationBracketMatchs}
onPartyClick={(party: Participant, won: boolean) => {
if (party.name !== 'TBD') setHighLightUser(party.name);
if (party.name !== '') setHighLightUser(party.name);
}}
matchComponent={TournamentMatch}
options={{
Expand Down
2 changes: 1 addition & 1 deletion components/tournament/TournamentMatch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function TournamentMatchParty({
return (
<div
className={`${styles.tournamentPartyWrapper} ${
highLightUser !== 'TBD' && highLightUser === party.name
highLightUser !== '' && highLightUser === party.name
? styles.highlight
: ''
}`}
Expand Down
4 changes: 2 additions & 2 deletions hooks/tournament/useTournamentMatchEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { useState } from 'react';
import { instance, instanceInManage } from 'utils/axios';

const emptyParty: Participant = {
id: 'TBD',
name: 'TBD',
id: '',
name: '',
resultText: '',
};

Expand Down

0 comments on commit 8b7a3f8

Please sign in to comment.