Skip to content

Commit 3d0e8f7

Browse files
authored
hotfix: temporarily handle direct grant rounds (#2402)
1 parent 274fbd2 commit 3d0e8f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/common/src/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,10 @@ export const padSingleDigitNumberWithZero = (i: number): string =>
277277
i < 10 ? "0" + i : i.toString();
278278

279279
export const formatUTCDateAsISOString = (date: Date): string => {
280+
// @ts-expect-error remove when DG support is merged
281+
if (isNaN(date)) {
282+
return "";
283+
}
280284
const isoString = date.toISOString();
281285
return isoString.slice(0, 10).replace(/-/g, "/");
282286
};

0 commit comments

Comments
 (0)