Skip to content

Commit

Permalink
fix: genshin competition render issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamerblue committed Dec 6, 2024
1 parent 095a6b1 commit 6770c52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/AchievementToast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class AchievementToast extends React.Component<IAchievementToastProps> {
componentDidMount() {
const sound = new Howl({
src: [`${process.env.PUBLIC_PATH}assets/audio/achievement-toast.mp3`],
volume: 0.8,
});
setTimeout(() => sound.play(), 200);
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/competitions/$id/overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ class CompetitionOverview extends React.Component<Props, State> {
timeStatus === 'Ended' &&
!detail.ended &&
[ECompetitionUserRole.admin, ECompetitionUserRole.principal].includes(selfUserDetail?.role);
const announcement = this.simpleFilterHTML(detail.announcement);
const announcement = simpleFilterHTML(detail.announcement);

let totalScore = 0;
if (useScore) {
Expand Down

0 comments on commit 6770c52

Please sign in to comment.