Skip to content

Commit

Permalink
cleaning up the code
Browse files Browse the repository at this point in the history
  • Loading branch information
div360 committed Oct 3, 2024
1 parent 2ec694c commit 1acdd89
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/integrations/intacct/intacct.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class IntacctComponent implements OnInit {
private handleAuthParameters(): void {
this.route.queryParams.subscribe(params => {
const authCode = params.code;
if ( authCode) {
if (authCode) {
this.siAuthService.loginWithAuthCode(authCode).subscribe(
() => this.getOrCreateWorkspace()
);
Expand Down
3 changes: 1 addition & 2 deletions src/app/integrations/netsuite/netsuite.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,9 @@ export class NetsuiteComponent implements OnInit {

private handleAuthParameters(): void {
this.route.queryParams.subscribe(params => {
const loginRequired = params.login_required === 'true';
const authCode = params.code;

if (loginRequired && authCode) {
if (authCode) {
this.nsAuthService.loginWithAuthCode(authCode).subscribe(
() => this.setupWorkspace()
);
Expand Down
3 changes: 1 addition & 2 deletions src/app/integrations/qbo/qbo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,9 @@ export class QboComponent implements OnInit {

private handleAuthParameters(): void {
this.route.queryParams.subscribe(params => {
const loginRequired = params.login_required === 'true';
const authCode = params.code;

if (loginRequired && authCode) {
if (authCode) {
this.qboAuthService.loginWithAuthCode(authCode).subscribe(
() => this.setupWorkspace()
);
Expand Down

0 comments on commit 1acdd89

Please sign in to comment.