Fix for missing metamask/web3 calls #54

Closed
bumi wants to merge 4 commits from fix-with-missing-metamask into master
Showing only changes of commit 6eeeabda5c - Show all commits
+4 -1
View File
@@ -4,7 +4,10 @@ import ethers from 'npm:ethers';
export default function(dependentKey, converterMethod) {
return computed(dependentKey, {
get () {
return this.get(dependentKey)[converterMethod]();
let value = this.get(dependentKey);
if (value) {
return this.get(dependentKey)[converterMethod]();
}
},
set (key, value) {
value = ethers.utils.bigNumberify(value);
bumi commented 2018-04-16 21:36:42 +00:00 (Migrated from github.com)
Review

I sneaked in this, which is actually not related. :(

I sneaked in this, which is actually not related. :(