Skip to content

Commit

Permalink
Pass original renderChallenge to user defined CTFd._functions.challen…
Browse files Browse the repository at this point in the history
…ge.renderChallenge
  • Loading branch information
ColdHeat committed Feb 27, 2024
1 parent 65df4e0 commit fffd154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/challenge.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function displayChallenge(challengeId, renderChallenge) {

// Call user func
if (CTFd._functions.challenge.renderChallenge) {
CTFd._functions.challenge.renderChallenge(internal);
CTFd._functions.challenge.renderChallenge(internal, renderChallenge);
} else if (renderChallenge) {
renderChallenge(internal);
}
Expand Down

0 comments on commit fffd154

Please sign in to comment.