Skip to content

Commit 2b025b1

Browse files
authored
Merge pull request #369 from sherlock-protocol/fix/create-contest-twitter-optional
fix: make twitter field optional
2 parents c1eed4c + a39e439 commit 2b025b1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/pages/admin/AdminContestsList/CreateContestModal.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ export const CreateContestModal: React.FC<Props> = ({ onClose }) => {
136136
if (protocolName === "") return false
137137
if (protocolLogoURL === "" && !protocol?.logoURL) return false
138138
if (protocolWebsite === "" && !protocol?.website) return false
139-
if (protocolTwitter === "" && !protocol?.twitter) return false
140139
if (protocolGithubTeam === "" && !protocol?.githubTeam) return false
141140

142141
if (contestTitle === "") return false
@@ -161,12 +160,10 @@ export const CreateContestModal: React.FC<Props> = ({ onClose }) => {
161160
contestTitle,
162161
contestTotalCost,
163162
protocol?.logoURL,
164-
protocol?.twitter,
165163
protocol?.website,
166164
protocol?.githubTeam,
167165
protocolLogoURL,
168166
protocolName,
169-
protocolTwitter,
170167
protocolWebsite,
171168
protocolGithubTeam,
172169
])

0 commit comments

Comments
 (0)