Skip to content

Commit

Permalink
Fix TRB Admin home page crash when searching existing requests (#2078)
Browse files Browse the repository at this point in the history
Replace useTranslation hook with its function equivalent
  • Loading branch information
adamodd authored Jun 27, 2023
1 parent 6f705df commit 4a66c8f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/views/TechnicalAssistance/TrbAdminTeamHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,9 @@ function RequestNameCell({
value,
row
}: CellProps<TrbAdminTeamHomeRequest, TrbAdminTeamHomeRequest['name']>) {
const { t } = useTranslation('technicalAssistance');

return (
<UswdsReactLink to={`/trb/${row.original.id}/request`}>
{value || t('taskList.defaultName')}
{value || i18next.t<string>('technicalAssistance:taskList.defaultName')}
</UswdsReactLink>
);
}
Expand Down

0 comments on commit 4a66c8f

Please sign in to comment.