pl-fe: 🤔
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
d74c18aab9
commit
99c5521e97
2 changed files with 5 additions and 5 deletions
|
@ -48,9 +48,9 @@ const fetchFilters = () =>
|
||||||
type: FILTERS_FETCH_SUCCESS,
|
type: FILTERS_FETCH_SUCCESS,
|
||||||
filters: data,
|
filters: data,
|
||||||
}))
|
}))
|
||||||
.catch(err => dispatch<FiltersAction>({
|
.catch(error => dispatch<FiltersAction>({
|
||||||
type: FILTERS_FETCH_FAIL,
|
type: FILTERS_FETCH_FAIL,
|
||||||
err,
|
error,
|
||||||
skipAlert: true,
|
skipAlert: true,
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
@ -68,10 +68,10 @@ const fetchFilter = (filterId: string) =>
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(error => {
|
||||||
dispatch<FiltersAction>({
|
dispatch<FiltersAction>({
|
||||||
type: FILTER_FETCH_FAIL,
|
type: FILTER_FETCH_FAIL,
|
||||||
err,
|
error,
|
||||||
skipAlert: true,
|
skipAlert: true,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -95,7 +95,7 @@ const AuthTokenList: React.FC = () => {
|
||||||
const body = tokens ? (
|
const body = tokens ? (
|
||||||
<div className='grid grid-cols-1 gap-4 sm:grid-cols-2'>
|
<div className='grid grid-cols-1 gap-4 sm:grid-cols-2'>
|
||||||
{tokens.map((token) => (
|
{tokens.map((token) => (
|
||||||
<AuthToken key={token.id} token={token} isCurrent={token.id === currentTokenId} />
|
<AuthToken key={token.id} token={token} isCurrent={String(token.id) === currentTokenId} />
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
) : <Spinner />;
|
) : <Spinner />;
|
||||||
|
|
Loading…
Reference in a new issue