Fix empty location for missing provider

This commit is contained in:
2020-08-04 12:31:02 -05:00
parent ade5fdc38d
commit f130d88477

View File

@@ -134,11 +134,11 @@ const addListeners = (ipcMain, {setTrayImage, standardIPCReply}) => {
}
};
const setImage = (locations) => {
const setImage = locations => {
let driveInUse;
if (Object.keys(locations).length > 0) {
for (const provider of providerList) {
driveInUse = locations[provider].length > 0;
driveInUse = locations[provider] && locations[provider].length > 0;
if (driveInUse)
break;
}