Fixed hydration error

This commit is contained in:
Emir Karabeg
2025-01-29 23:36:43 -08:00
parent 04fb16ce40
commit dd2caee5ca
4 changed files with 21 additions and 31 deletions
+1 -8
View File
@@ -3,11 +3,4 @@ import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
export const getTimestamp = () => {
if (typeof window === 'undefined') {
return Date.now()
}
return window.INITIAL_TIMESTAMP || Date.now()
}
}