improvement: improve role not found error display

This commit is contained in:
Scott Wilson
2025-05-08 20:15:47 -07:00
parent 57a29577fe
commit 45c08b3f09

View File

@@ -150,7 +150,9 @@ export const DuplicateRoleModal = ({ isOpen, onOpenChange, roleSlug }: Props) =>
) : role ? (
<Content role={role!} onClose={() => onOpenChange(false)} />
) : (
<span>Error: could not find role with slug &#34;{roleSlug}&#34;</span>
<p className="w-full text-center text-red">
Error: could not find role with slug &#34;{roleSlug}&#34;
</p>
)}
</ModalContent>
</Modal>