fix(electron): empty error message would appear after closing app

This commit is contained in:
Tom (plebeius.eth)
2024-10-11 17:24:22 +02:00
parent eac0a0150c
commit 83fdd8eb09
+1 -1
View File
@@ -16,7 +16,7 @@ startIpfs.onError = (error) => {
// only show error once or it spams the user // only show error once or it spams the user
const alreadyShownIpfsError = !!startIpfsError; const alreadyShownIpfsError = !!startIpfsError;
startIpfsError = error; startIpfsError = error;
if (!alreadyShownIpfsError) { if (!alreadyShownIpfsError && error.message) {
dialog.showErrorBox('IPFS warning', error.message); dialog.showErrorBox('IPFS warning', error.message);
} }
}; };