Skip to content
Snippets Groups Projects
Commit 3fdfc7ca authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Add validator to check for hasPerson

parent 2e5efdf6
No related branches found
No related tags found
1 merge request!1123Resolve "Finalise Vuetify app as SPA"
......@@ -8,4 +8,8 @@ const notLoggedInValidator = (whoAmI) => {
return !whoAmI || whoAmI.isAnonymous;
};
export { notLoggedInValidator };
const hasPersonValidator = (whoAmI) => {
return whoAmI && whoAmI.person && !whoAmI.person.isDummy;
};
export { notLoggedInValidator, hasPersonValidator };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment