fix(zcash-conf): clean store if rpcuser/rpcpassword are empty

This commit is contained in:
George Lima 2019-03-06 09:57:49 -03:00
parent c3df064b48
commit 930e560816
1 changed files with 2 additions and 2 deletions

View File

@ -52,8 +52,8 @@ export const parseZcashConf = (): Promise<Array<string>> => new Promise((resolve
}, {}),
);
if (rpcuser) store.set('rpcuser', rpcuser);
if (rpcpassword) store.set('rpcpassword', rpcpassword);
store.set('rpcuser', rpcuser || '');
store.set('rpcpassword', rpcpassword || '');
// $FlowFixMe
resolve(Object.keys(payload).reduce((acc, key) => acc.concat(`-${key}=${payload[key]}`), []));