diff --git a/src/components/ChallengeEditor/Copilot-Field/Copilot-Field.module.scss b/src/components/ChallengeEditor/Copilot-Field/Copilot-Field.module.scss index 1a272eed..d50a3f10 100644 --- a/src/components/ChallengeEditor/Copilot-Field/Copilot-Field.module.scss +++ b/src/components/ChallengeEditor/Copilot-Field/Copilot-Field.module.scss @@ -31,6 +31,11 @@ display: flex; align-items: center; } + + &.col2.error { + color: $tc-red; + margin-top: -25px; + } &.col2 { align-self: flex-end; diff --git a/src/components/ChallengeEditor/Copilot-Field/index.js b/src/components/ChallengeEditor/Copilot-Field/index.js index 4d092d22..38607cdd 100644 --- a/src/components/ChallengeEditor/Copilot-Field/index.js +++ b/src/components/ChallengeEditor/Copilot-Field/index.js @@ -6,8 +6,11 @@ import _ from 'lodash' import CopilotCard from '../../CopilotCard' const CopilotField = ({ copilots, challenge, onUpdateOthers, readOnly }) => { + let errMessage = 'Please set a copilot' + const selectedCopilot = _.find(copilots, { handle: challenge.copilot }) + const copilotFee = _.find(challenge.prizeSets, p => p.type === 'copilot', []) + console.log(copilotFee) if (readOnly) { - const selectedCopilot = _.find(copilots, { handle: challenge.copilot }) return (