mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-14 11:12:16 +01:00
add format check, update prettier rules, apply rules consistently
This commit is contained in:
@@ -19,15 +19,13 @@ function getCurrentOrganizationId() {
|
||||
}
|
||||
|
||||
function getCurrentMembershipId() {
|
||||
return page.props.auth.user.all_teams.find(
|
||||
(team) => team.id === getCurrentOrganizationId()
|
||||
)?.membership.id;
|
||||
return page.props.auth.user.all_teams.find((team) => team.id === getCurrentOrganizationId())
|
||||
?.membership.id;
|
||||
}
|
||||
|
||||
function getCurrentRole() {
|
||||
return page.props.auth.user.all_teams.find(
|
||||
(team) => team.id === getCurrentOrganizationId()
|
||||
)?.membership.role;
|
||||
return page.props.auth.user.all_teams.find((team) => team.id === getCurrentOrganizationId())
|
||||
?.membership.role;
|
||||
}
|
||||
|
||||
export {
|
||||
|
||||
Reference in New Issue
Block a user