File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 78
78
export default {
79
79
mixins: [validationMixin],
80
80
mounted () {
81
- if (this .$store .getters [' profile/getUserProfile' ].profileIsCompleted ) {
81
+ if (this .$store .getters [' profile/getUserProfile' ].profileIsCompleted
82
+ && this .$store .getters [' profile/getUserProfile' ].mangoPayUser .Address .AddressLine1 ) {
82
83
Object .assign (this .Address , this .$store .getters [' profile/getUserProfile' ].mangoPayUser .Address );
83
84
}
84
85
},
Original file line number Diff line number Diff line change
1
+ export default async function ( { store, redirect} ) {
2
+ if ( store . state . auth . loggedIn ) {
3
+ await store . dispatch ( 'profile/getUserProfile' ) ;
4
+
5
+ if ( store . getters [ 'profile/getUserProfile' ] . userAuth0 . identities [ 0 ] . isSocial ) {
6
+ return redirect ( '/profile' )
7
+ }
8
+ }
9
+ }
Original file line number Diff line number Diff line change 6
6
7
7
<script >
8
8
export default {
9
- name: " index"
9
+ name: " index" ,
10
+ middleware: ' changeEmail'
10
11
}
11
12
</script >
12
13
You can’t perform that action at this time.
0 commit comments