Merge pull request #1055 from adarshlilha/bugfix/boolean-falsy-response-missing

fix(#1035): fix falsy check of response
This commit is contained in:
Anoop M D 2023-11-26 13:14:27 +05:30 committed by GitHub
commit fad71e936c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import { useEffect } from 'react';
import { useTheme } from 'providers/Theme/index';
const formatResponse = (data, mode) => {
if (!data) {
if (data === undefined) {
return '';
}

View File

@ -38,7 +38,7 @@ export const safeParseJSON = (str) => {
};
export const safeStringifyJSON = (obj, indent = false) => {
if (!obj) {
if (obj === undefined) {
return obj;
}
try {