pl-fe: AuthTokenList: support Mitra' is_current
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -158,7 +158,7 @@ const AuthTokenListPage: React.FC = () => {
|
||||
const body = tokens ? (
|
||||
<div className='grid grid-cols-1 gap-4 sm:grid-cols-2'>
|
||||
{tokens.map((token) => (
|
||||
<AuthToken key={token.id} token={token} isCurrent={String(token.id) === currentTokenId} />
|
||||
<AuthToken key={token.id} token={token} isCurrent={token.is_current || String(token.id) === currentTokenId} />
|
||||
))}
|
||||
</div>
|
||||
) : <Spinner />;
|
||||
|
||||
Reference in New Issue
Block a user