pl-fe: AuthTokenList: support Mitra' is_current

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-11-29 15:47:26 +01:00
parent a1fa8a5b12
commit a8cea70fec

View File

@ -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 />;