Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored and SebassNoob committed Aug 23, 2024
1 parent 4785887 commit 8b48610
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions interapp-frontend/src/app/admin/AdminTable/AdminTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ const AdminTable = () => {
<Table.Td>
<div className='admin-table-permissions'>
{user.permissions?.map((perm) => (
<Pill key={perm} className='admin-table-permission'>
{permissionsMap[perm]}
</Pill>
))}
<Pill key={perm} className='admin-table-permission'>
{permissionsMap[perm]}
</Pill>
))}
</div>
</Table.Td>
<Table.Td>{user.service_hours}</Table.Td>
Expand Down
6 changes: 4 additions & 2 deletions interapp-frontend/src/providers/AuthProvider/AuthProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ export const AuthProvider = ({ children }: AuthProviderProps) => {
const constructedSearchParams = Object.entries(Object.fromEntries(params))
.map(([key, value]) => `${key}=${value}`)
.join('&');

const constructedSearchParamsParsed = constructedSearchParams ? `?${constructedSearchParams}` : '';

const constructedSearchParamsParsed = constructedSearchParams
? `?${constructedSearchParams}`
: '';
const fullPath = `${pathname}${constructedSearchParamsParsed}`;
router.push(`/auth/login?redirectTo=${encodeURIComponent(fullPath)}`);

Expand Down

0 comments on commit 8b48610

Please sign in to comment.