- mapPropsToValues: ({ participant, round }) => ({
- participant_id: participant.id,
- round_id: round.id,
- time: '',
- }),
+ mapPropsToValues: ({ participant, round }) => {
+ const result = findResult(participant, round);
+ console.log(result);
+ return {
+ forfeit: result ? !!result.forfeit : false,
+ participant_id: participant.id,
+ round_id: round.id,
+ time: result && result.time ? formatTime(result) : '',
+ };
+ },