fix: default create entity during checkout

This commit is contained in:
John Yeo
2025-09-24 12:18:09 +01:00
parent 9209dbb43b
commit b28187da56
18 changed files with 339 additions and 292 deletions

View File

@@ -1,2 +1,8 @@
export const notNullish = (value: any) => value !== null && value !== undefined;
export const nullish = (value: any) => value === null || value === undefined;
export const nullish = <T>(
value: T | null | undefined,
): value is null | undefined => {
return value === null || value === undefined;
};
export const notNullish = <T>(value: T | null | undefined): value is T =>
value !== null && value !== undefined;