File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -328,10 +328,6 @@ export default class App extends Component {
328328 } ) ;
329329 }
330330
331- onSubscriptionChange ( ) {
332- alert ( 'Please refresh the page later to display subscriptions.' ) ;
333- }
334-
335331 loadUserSubscription ( ) {
336332 loadSubscriptionToApp ( this ) . then ( ( ) => this . refreshEditor ( ) ) ;
337333 }
@@ -1681,7 +1677,7 @@ BookLibService.Borrow(id) {
16811677 }
16821678 onSupportBtnClick = { this . openSupportDeveloperModal . bind ( this ) }
16831679 version = { version }
1684- onSubscriptionChange = { this . onSubscriptionChange . bind ( this ) }
1680+ onSubscriptionChange = { this . loadUserSubscription . bind ( this ) }
16851681 loginHandler = { this . loginBtnClickHandler . bind ( this ) }
16861682 />
16871683 < SupportDeveloperModal
Original file line number Diff line number Diff line change 11import planService from '../../services/planService' ;
2+ import userService from '../../services/user_service' ;
23
34const UpgradeLink = ( props ) => {
45 const checkout = ( e ) => {
@@ -12,7 +13,10 @@ const UpgradeLink = (props) => {
1213 userId : props . userId ,
1314 planType : props . planType ,
1415 } ) ,
15- successCallback : props . postActionCallback ,
16+ successCallback : ( ) => {
17+ alert ( 'Please refresh the page later to display subscriptions.' ) ;
18+ props . postActionCallback ( ) ;
19+ } ,
1620 } ) ;
1721 } ;
1822 return (
You can’t perform that action at this time.
0 commit comments