Skip to content

Production pr#427

Merged
Chandan-walker merged 5 commits intoproductionfrom
main
Feb 23, 2026
Merged

Production pr#427
Chandan-walker merged 5 commits intoproductionfrom
main

Conversation

@prakharlowanshi11
Copy link
Collaborator

No description provided.

Copy link

@windsurf-bot windsurf-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other comments (11)

💡 To request another review, post a new comment with "/windsurf-review".

></organization-details>
<div
class="otp-verification-footer"
*ngIf="!authToken && !type === 'user-management' && !type === 'subscription' && referenceId"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a logical error in this ngIf condition. The expression !type === 'user-management' will always evaluate to either false === 'user-management' or true === 'user-management', which is always false.

Suggested change
*ngIf="!authToken && !type === 'user-management' && !type === 'subscription' && referenceId"
*ngIf="!authToken && type !== 'user-management' && type !== 'subscription' && referenceId"

Comment on lines +157 to +159
<mat-error *ngIf="organizationForm.get('timezone')?.hasError('required')">
Timezone is required.
</mat-error>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a mismatch between the form control name and error check for timezone. The form control is named 'timeZoneName' but the error check is using 'timezone'.

Suggested change
<mat-error *ngIf="organizationForm.get('timezone')?.hasError('required')">
Timezone is required.
</mat-error>
<mat-error *ngIf="organizationForm.get('timeZoneName')?.hasError('required')">
Timezone is required.
</mat-error>

Comment on lines +83 to +88
next: (res) => {
const raw = res?.data ?? res;
if (Array.isArray(raw)) {
this.timezones = res.data;
}
},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a potential issue in the getTimezones response handling. You check if raw is an array but then assign res.data to this.timezones. This could be a bug if raw and res.data are different.

Suggested change
next: (res) => {
const raw = res?.data ?? res;
if (Array.isArray(raw)) {
this.timezones = res.data;
}
},
next: (res) => {
const raw = res?.data ?? res;
if (Array.isArray(raw)) {
this.timezones = raw;
}
},

@Chandan-walker Chandan-walker merged commit 5c1832e into production Feb 23, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants