diff --git a/src/logic/safe/store/actions/fetchSafe.ts b/src/logic/safe/store/actions/fetchSafe.ts index 43def162..014e6e26 100644 --- a/src/logic/safe/store/actions/fetchSafe.ts +++ b/src/logic/safe/store/actions/fetchSafe.ts @@ -122,13 +122,16 @@ export const checkAndUpdateSafe = (safeAdd: string) => async (dispatch: Dispatch name: localSafe?.name, modules, spendingLimits, - nonce: Number(remoteNonce), - threshold: Number(remoteThreshold), + nonce: remoteNonce ? Number(remoteNonce) : undefined, + threshold: remoteThreshold ? Number(remoteThreshold) : undefined, featuresEnabled: localSafe?.currentVersion ? enabledFeatures(localSafe.currentVersion) : localSafe?.featuresEnabled, } dispatch(updateSafe(updatedSafe)) + if (!remoteOwners.length) { + return + } // If the remote owners does not contain a local address, we remove that local owner localOwners.forEach((localAddress) => { const remoteOwnerIndex = remoteOwners.findIndex((remoteAddress) => sameAddress(remoteAddress, localAddress))