Skip to content

Commit ac4d743

Browse files
committed
chore: Fix build errors
1 parent 8714e2a commit ac4d743

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

src/app/[id]/ProofRow.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface ProofProps {
1414
proofId: string;
1515
}
1616

17-
export const handleGetStatusIcon = (status: ProofStatus) => {
17+
export const handleGetStatusIcon = (status: ProofStatus | undefined) => {
1818
switch (status) {
1919
case ProofStatus.None:
2020
return (
@@ -70,6 +70,19 @@ export const handleGetStatusIcon = (status: ProofStatus) => {
7070
}}
7171
/>
7272
);
73+
default:
74+
return (
75+
<Image
76+
src="/assets/Checks.svg"
77+
alt="status"
78+
width={20}
79+
height={20}
80+
style={{
81+
maxWidth: '100%',
82+
height: 'auto',
83+
}}
84+
/>
85+
);
7386
}
7487
};
7588

src/app/[id]/versions/VersionCard.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ const VersionCard = ({ blueprint, isLatest = false, onDelete }: VersionCardProps
200200
onClick={() => {
201201
if (blueprint.props.zkFramework === ZkFramework.Circom) {
202202
router.push(`/${blueprint.props.id}/download`);
203+
// @ts-ignore
203204
} else if (blueprint.props.zkFramework === ZkFramework.Sp1) {
204205
toast.warn('This blueprints was built using SP1 and does not have circuits');
205206
} else {

src/app/create/[id]/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ const CreateBlueprint = ({ params }: { params: Promise<{ id: string }> }) => {
194194
store.setField('emailHeaderMaxLength', (Math.ceil(headerLength / 64) + 7) * 64);
195195
store.setField('emailBodyMaxLength', (Math.ceil(emailBodyMaxLength / 64) + 7) * 64);
196196
if (emailBodyMaxLength > 9984 && !store.shaPrecomputeSelector && !store.ignoreBodyHashCheck) {
197+
// @ts-ignore
197198
store.setField('zkFramework', ZkFramework.Sp1);
198199
}
199200
} catch (err) {

0 commit comments

Comments
 (0)