Skip to content

Commit 2ca5ab5

Browse files
authored
Merge pull request #1190 from jeetburman/fix/resolve-lint-errors
fix: resolve pre-existing ESLint errors
2 parents 16d0807 + bcce363 commit 2ca5ab5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/actors/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { AnyActorRef, AnyEventObject, assign, enqueueActions, sendTo } from 'xst
55
import { AnyActorSystem } from 'xstate/dist/declarations/src/system';
66
import { workerEvents } from './worker/events';
77

8+
// Type used for context validation in reply() function
9+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
810
type ContextWithReturnAddress = { returnAddress: AnyActorRef };
911

1012
export const sendToActor = (actor: string, event: AnyEventObject) =>

src/custom/DashboardWidgets/GettingStartedWidget/InviteUserModal.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,10 @@ export default function UserInviteModal({
105105
const [organization, setOrganization] = useState<Organization>(defaultOrgSelection);
106106

107107
// Query to check if user exists by email (only if hook is provided)
108-
const { data: existingUserData } = useGetUserByEmailQuery
109-
? useGetUserByEmailQuery(
110-
{ email: inviteeEmail },
111-
{ skip: !inviteeEmail || !EMAIL_REGEXP.test(inviteeEmail) }
112-
)
113-
: { data: null };
108+
const { data: existingUserData } = useGetUserByEmailQuery?.(
109+
{ email: inviteeEmail },
110+
{ skip: !useGetUserByEmailQuery || !inviteeEmail || !EMAIL_REGEXP.test(inviteeEmail) }
111+
) ?? { data: null };
114112

115113
const { data: providerRolesData } = useGetUserOrgRolesQuery({
116114
orgId: currentOrgId,

0 commit comments

Comments
 (0)