Skip to content

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

Fix logic

Joshen Lim81d960cdf028
diff --git a/studio/lib/helpers.ts b/studio/lib/helpers.ts
index a52bb8c367b..74fd00df8a9 100644
--- a/studio/lib/helpers.ts
+++ b/studio/lib/helpers.ts
@@ -14,7 +14,7 @@ export const tryParseJson = (jsonString: any) => {
export const minifyJSON = (prettifiedJSON: string) => {
try {
const res = JSON.stringify(JSON.parse(prettifiedJSON))
- if (Number(res) !== NaN) return Number(res)
+ if (!isNaN(Number(res))) return Number(res)
else return res
} catch (err) {
throw err