Skip to content

Commit 2433c68

Browse files
fix: capture error message correctly
1 parent 6ea254d commit 2433c68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/OpenSign/src/constant/Utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1926,7 +1926,7 @@ export const getAppLogo = async () => {
19261926
}
19271927
} catch (err) {
19281928
console.log("err in getlogo ", err);
1929-
if (err?.includes("is not valid JSON")) {
1929+
if (err?.message?.includes("valid JSON")) {
19301930
return { logo: appInfo.applogo, user: "exist", error: "invalid_json" };
19311931
} else {
19321932
return { logo: appInfo.applogo, user: "exist" };

0 commit comments

Comments
 (0)