]> git.localhorst.tv Git - alttp.git/blob - resources/js/helpers/Participant.js
basic result display
[alttp.git] / resources / js / helpers / Participant.js
1 export const findResult = (participant, round) => {
2         if (!participant || !participant.user_id) return null;
3         if (!round || !round.results || !round.results.length) return null;
4         return round.results.find(result => result.user_id === participant.user_id);
5 };
6
7 export default {
8         findResult,
9 };