Skip to content

Commit a7723ab

Browse files
committed
Fix onMatchClick option
1 parent bcb3877 commit a7723ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ export class BracketsViewer {
6969
showRankingTable: config?.showRankingTable !== undefined ? config.showRankingTable : true,
7070
};
7171

72-
if (this.config.onMatchClick)
73-
this._onMatchClick = this.config.onMatchClick;
72+
if (config?.onMatchClick)
73+
this._onMatchClick = config.onMatchClick;
7474

7575
this.participants = data.participants;
7676

0 commit comments

Comments
 (0)