Skip to content

Commit

Permalink
πŸ› No role selected by default
Browse files Browse the repository at this point in the history
  • Loading branch information
homostellaris committed Jul 27, 2024
1 parent 4c6c777 commit 7149242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/view/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function ViewProvider({ children }: { children: React.ReactNode }) {
if (!starRoles) return
/* In the rare event that a star role is added or removed we're happy to reset the state because
it's not clear whether the user would want the new star role to be active or not. */
setActiveStarRoles(starRoles.map(({ id }) => id))
setActiveStarRoles([...starRoles.map(({ id }) => id), ''])
}, [starRoles])
const allStarRolesActive = activeStarRoles.length === (starRoles?.length || 0)
const inActiveStarRoles = useCallback(
Expand Down

0 comments on commit 7149242

Please sign in to comment.