Skip to content

Commit c32972a

Browse files
committed
added tryJSONStringify / tryJSONParse utils
1 parent e9f648d commit c32972a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function tryJSONStringify(data) {
5252
try {
5353
return JSON.stringify(data);
5454
} catch (jsonError) {
55-
return undefined;
55+
return null;
5656
}
5757
}
5858

0 commit comments

Comments
 (0)