fix(client): show preview (#58629)

This commit is contained in:
Oliver Eyton-Williams
2025-02-10 09:42:41 +01:00
committed by GitHub
parent 5a74c19bf9
commit 6e6f13f85d
+1 -3
View File
@@ -18,7 +18,7 @@ export type ChallengeFile = IncompleteChallengeFile & {
error?: unknown;
head: string;
tail: string;
seed: string;
seed?: string;
source?: string | null;
path: string;
history: string[];
@@ -79,7 +79,6 @@ export function isPoly(poly: unknown): poly is ChallengeFile {
'fileKey' in poly &&
'head' in poly &&
'tail' in poly &&
'seed' in poly &&
'history' in poly
);
}
@@ -91,7 +90,6 @@ export function isPoly(poly: unknown): poly is ChallengeFile {
typeof poly.fileKey === 'string' &&
typeof poly.head === 'string' &&
typeof poly.tail === 'string' &&
typeof poly.seed === 'string' &&
Array.isArray(poly.history);
return hasProperties(poly) && hasCorrectTypes(poly);