Skip to content

Commit c518a58

Browse files
authored
Merge branch 'main' into feat/scoping-v2
2 parents 9c45193 + 3db223a commit c518a58

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/AppProtocolDashboard.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,23 @@ const AppProtocolDashboard = () => {
9696
<Text strong>Contest Prize Pool</Text>
9797
</Td>
9898
<Td>
99-
<Text alignment="right">{`${commify(protocolDashboard.contest.prizePool)} USDC`}</Text>
99+
<Text alignment="right">
100+
{protocolDashboard.contest.prizePool
101+
? ` ${commify(protocolDashboard.contest.prizePool)} USDC`
102+
: "TBD"}
103+
</Text>
100104
</Td>
101105
</Tr>
102106
<Tr>
103107
<Td>
104108
<Text strong>Lead Senior Watson Fixed Pay</Text>
105109
</Td>
106110
<Td>
107-
<Text alignment="right">{`${commify(
108-
protocolDashboard.contest.leadSeniorAuditorFixedPay
109-
)} USDC`}</Text>
111+
<Text alignment="right">
112+
{protocolDashboard.contest.leadSeniorAuditorFixedPay
113+
? `${commify(protocolDashboard.contest.leadSeniorAuditorFixedPay)} USDC`
114+
: "TBD"}
115+
</Text>
110116
</Td>
111117
</Tr>
112118
<Tr>

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)