Skip to content

Commit

Permalink
runfix: improve user entity type guard (#17576)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrykBuniX committed Jun 14, 2024
1 parent 1d37762 commit 7c22bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/guards/Panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const isServiceEntity = (entity: PanelEntity): entity is ServiceEntity =>
};

export const isUserEntity = (entity: PanelEntity): entity is User => {
return !isServiceEntity(entity);
return !isServiceEntity(entity) && entity instanceof User;
};

export const isUserServiceEntity = (entity: PanelEntity): entity is User => {
Expand Down

0 comments on commit 7c22bf1

Please sign in to comment.