fix: address onboarding review findings

This commit is contained in:
ajnart committed 2026-08-14 11:32:13 +02:00
1 parent 9b7f189b02
commit 741e641bd2
6 files changed
+77 -22

No files matched your search

@@ -0,0 +1,16 @@
interface BoardValidationInput {
attempted: boolean;
hasExistingBoards: boolean;
selectedBoardId: string | null;
boardName: string;
}
export const getBoardValidationErrors = ({
attempted,
hasExistingBoards,
selectedBoardId,
boardName,
}: BoardValidationInput) => ({
target: attempted && hasExistingBoards && !selectedBoardId,
name: attempted && !boardName.trim(),
});