fix: address onboarding review findings
This commit is contained in:
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(),
|
||||
});
|
||||
Reference in new issue
Block a user