Skip to content

Commit

Permalink
Merge pull request MyEtherWallet#2396 from MyEtherWallet/bug/sentry-f…
Browse files Browse the repository at this point in the history
…ixes/jess

Bug/sentry fixes/jess
  • Loading branch information
gamalielhere authored May 27, 2020
2 parents d2b7367 + a1efe31 commit bd54d15
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Bug


- Sentry fixes j [#2396](https://github.com/MyEtherWallet/MyEtherWallet/pull/2396)
- Fix address not getting returned for unable to validate addresses and disable swap when recalculating rates[#2397](https://github.com/MyEtherWallet/MyEtherWallet/pull/2397)
- Fix errors from sentry [#2393](https://github.com/MyEtherWallet/MyEtherWallet/pull/2393)
- Fix perkle network connection [#2389](https://github.com/MyEtherWallet/MyEtherWallet/pull/2389)
Expand Down
8 changes: 7 additions & 1 deletion package-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ const EXCEPTIONS = [
'@vue/test-utils',
'graphql',
'@myetherwallet/eth-token-balance',
'@makerdao/dai'
'@makerdao/dai',
'bootstrap-vue',
'web3',
'web3-core-helpers',
'web3-core-method',
'web3-core-requestmanager',
'web3-utils'
];
const CUSTOM_DIST = {
['babel-core']: 'bridge'
Expand Down
4 changes: 4 additions & 0 deletions src/dapps/Aave/Aave.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
grid-area: main;
overflow: hidden;

.back-btn {
display: block;
}

.header-container {
border-bottom: 2px solid $light-grey-1;
}
Expand Down
1 change: 1 addition & 0 deletions src/dapps/Aave/Aave.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
</div>
<back-button
v-if="$route.fullPath !== '/interface/dapps/aave/action'"
class="back-btn"
:title="$t('common.exit-dapp')"
:hide-border="true"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@
}
}

.divider {
margin-bottom: 2.5rem;
}

.btn-container {
text-align: center;
button {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
<p class="mt-4">{{ rateType }}</p>
</div>
</div>
<hr class="mt-4 mb-4" />
<hr class="mt-4 divider" />
<div class="btn-container">
<p v-if="isDisabled() && errorMsg" class="error-msg">
{{ errorMsg }}
Expand Down
17 changes: 10 additions & 7 deletions src/dapps/Aave/containers/ActionContainer/ActionContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
<p class="token-balance">
{{
activeDepositTab
? convertToFixed(token.user.principalATokenBalance)
: convertToFixed(token.user.currentBorrows)
? convertToFixed(userToken.principalATokenBalance)
: convertToFixed(userToken.currentBorrows)
}}
<span class="token-name"> {{ token.symbol }} </span>
</p>
<p class="usd-amt">
${{
activeDepositTab
? convertToFixed(token.user.currentUnderlyingBalanceUSD)
: convertToFixed(token.user.currentBorrowsUSD)
? convertToFixed(userToken.currentUnderlyingBalanceUSD)
: convertToFixed(userToken.currentBorrowsUSD)
}}
</p>
</div>
Expand Down Expand Up @@ -160,6 +160,7 @@ export default {
amount: null,
ethPrice: 0,
disableBtn: false,
userToken: {},
token: { user: {}, price: {} },
actionType: null,
percentBtns: {
Expand Down Expand Up @@ -196,9 +197,9 @@ export default {
this.token.price.priceInEth
);
} else if (this.actionTitle === this.actionTitles.repay) {
return this.token.user.currentBorrows;
return this.userToken.currentBorrows;
} else if (this.actionTitle === this.actionTitles.withdraw) {
return this.token.user.principalATokenBalance;
return this.userToken.principalATokenBalance;
}
return false;
}
Expand All @@ -210,7 +211,7 @@ export default {
amount: this.convertToFixed(this.amountToCheck)
});
} else if (
this.amount === this.token.user.currentBorrows &&
this.amount === this.userToken.currentBorrows &&
this.amount > this.token.tokenBalance
) {
this.errorMsg = this.$t('dappsAave.cannot-exceed-tkn-bal', {
Expand All @@ -231,6 +232,8 @@ export default {
if (this.online) {
this.getEthPrice();
}
this.userToken = this.token.user ? this.token.user : {};
},
methods: {
...mapActions('aave', ['setToken']),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,9 @@ export default {
this.txtRecordInputs[type] !== '' &&
!this.txtValidators[type](this.txtRecordInputs[type])
)
return false;
return true;
}
return true;
return false;
}
},
watch: {
Expand Down
2 changes: 2 additions & 0 deletions src/dapps/ManageENS/supportedTxt.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const isUrl = function (input) {
};

const isEmail = function (input) {
if (!input) return;
const atIndex = input.indexOf('@');
const parsedEmailName = normalise(input.substr(0, atIndex));
const parsedEmailHost = normalise(input.substr(atIndex + 1, input.length));
Expand All @@ -27,6 +28,7 @@ const isString = function (input) {
};

const isHandle = function (input) {
if (!input) return;
const atIndex = input.indexOf('@');
const parsedInput = normalise(input.substr(atIndex + 1, input.length));
if (!isString(parsedInput)) return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,8 @@ export default {
switch (direction) {
case 'forward':
if (this.abi !== '') {
JSON.parse(this.abi).forEach(item => {
const jsonAbi = JSON.parse(this.abi) ? JSON.parse(this.abi) : [];
jsonAbi.forEach(item => {
if (item.type !== 'constructor' && item.constant !== undefined) {
this.contractMethods.push(item);
}
Expand Down

0 comments on commit bd54d15

Please sign in to comment.