Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: handle undefined dateString

phamhieu415bd9989ce9
diff --git a/studio/components/interfaces/Authentication/Users/Users.utils.ts b/studio/components/interfaces/Authentication/Users/Users.utils.ts
index 97169ba4f03..2a0684e62d3 100644
--- a/studio/components/interfaces/Authentication/Users/Users.utils.ts
+++ b/studio/components/interfaces/Authentication/Users/Users.utils.ts
@@ -14,10 +14,10 @@ import { detectBrowser } from 'lib/helpers'
* this util here for now. But if it does happen elsewhere i'll bring it
* to lib/helpers
*/
-export const formatUserDateString = (dateString: string) => {
+export const formatUserDateString = (dateString?: string) => {
const browser = detectBrowser()
if (browser === 'Safari') {
- return dateString.replace(' ', 'T')
+ return dateString?.replace(' ', 'T')
} else {
return dateString
}