Closed kellton-sarna closed 3 days ago
@kellton-sarna I think with data that we have it's expected behavior. We render the An example way to pass level
button only when there is a fetched project for that level that can be shown in the modal on button click.
If I remove the logic and there will be always a button that opens modal it will look like this:
The logic is in src/components/modules/AdvancementLevel/AdvancementLevel.tsx
file, here:
{projects.length > 0 && (
<Button variant="link" onClick={openModal} className="w-fit text-sm">
An example way to pass level
</Button>
)}
Actual result:
Expected result:
Relates to: https://github.com/Tivix/cpf/issues/30