Skip to content

Commit

Permalink
M2-6042: Remove type argument
Browse files Browse the repository at this point in the history
  • Loading branch information
sultanofcardio committed Apr 24, 2024
1 parent c255e20 commit c96de7f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/features/TakeNow/lib/useTakeNowValidation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const useTakeNowValidation = ({
});

if (respondentId !== user.id) {
return errorState(t<string>('takeNow.invalidRespondent'));
return errorState(t('takeNow.invalidRespondent'));
}

if (isLoadingApplet) {
Expand All @@ -96,11 +96,11 @@ export const useTakeNowValidation = ({
!subjectData?.data?.result ||
subjectData.data.result.appletId !== appletId
) {
return errorState(t<string>('takeNow.invalidSubject'));
return errorState(t('takeNow.invalidSubject'));
}

if (isActivityError) {
return errorState(t<string>('takeNow.invalidActivity'));
return errorState(t('takeNow.invalidActivity'));
}

// At this point we have the subject, applet, and activity data
Expand All @@ -112,7 +112,7 @@ export const useTakeNowValidation = ({
if (!localWorkspaceId) {
// We can't verify the roles of the current user in this workspace,
// so we can't proceed with a multi-informant flow
return errorState(t<string>('common_loading_error'));
return errorState(t('common_loading_error'));
}

setWorkspaceId(localWorkspaceId);
Expand All @@ -126,7 +126,7 @@ export const useTakeNowValidation = ({
if (isWorkspaceRolesError || !workspaceRolesData?.data?.result) {
// Same as above - we can't verify the roles of the current user in this workspace,
// so we can't proceed with a multi-informant flow
return errorState(t<string>('common_loading_error'));
return errorState(t('common_loading_error'));
}

const roles = workspaceRolesData.data.result[appletId];
Expand Down

0 comments on commit c96de7f

Please sign in to comment.