Skip to content

Commit

Permalink
fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ezra-sg authored and donnyquixotic committed Jan 6, 2024
1 parent b786087 commit d909dfc
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/pages/home/NativeLoginButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ export default defineComponent({
this.$router.push({ path: '/zero/balance' });
}
} catch (e) {
this.$errorNotification(e);
if (e.message !== 'User canceled request (Modal closed)') {
this.$errorNotification(e);
}
}
},
openUrl(url) {
Expand Down Expand Up @@ -249,7 +251,7 @@ export default defineComponent({
<QSpinnerFacebook />
</div>
<template v-else>
<img :src="getWalletIcon(wallet)" width="24" >
<img :src="getWalletIcon(wallet)" width="24" class="c-native-login__ual-logo">
{{ getWalletName(wallet) }}
</template>
</div>
Expand Down Expand Up @@ -346,6 +348,8 @@ export default defineComponent({
<style lang="scss">
.c-native-login {
$this: &;
&__buttons-container {
display: flex;
flex-direction: column;
Expand All @@ -358,6 +362,14 @@ export default defineComponent({
text-align: center;
}
&__ual-logo {
opacity: 0.8;
@include mobile-only {
opacity: 1;
}
}
&__button {
display: flex;
align-items: center;
Expand All @@ -378,6 +390,10 @@ export default defineComponent({
&:focus {
outline-color: $white;
outline-width: 2px;
#{$this}__ual-logo {
opacity: 1;
}
}
&--centered {
Expand Down

0 comments on commit d909dfc

Please sign in to comment.