diff --git a/client/src/util.ts b/client/src/util.ts index 59b0c60..03c100b 100644 --- a/client/src/util.ts +++ b/client/src/util.ts @@ -16,6 +16,7 @@ export function isNullish(value: any) { } export function variantOf(enumValue: any) { + if (enumValue === null) return null; if (typeof enumValue === 'string') return enumValue; else return Object.entries(enumValue)[0][0]; }