Skip to content

Commit

Permalink
fix: whiteboard collaborator user not removed after that user disconn…
Browse files Browse the repository at this point in the history
…ected + clean up
  • Loading branch information
jibon57 committed Oct 7, 2022
1 parent 47df761 commit 0c3e39b
Show file tree
Hide file tree
Showing 3 changed files with 150 additions and 175 deletions.
6 changes: 3 additions & 3 deletions src/components/polls/listPolls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ const ListPolls = () => {
}
}, [data]);

const renderPolls = () => {
const renderPolls = useMemo(() => {
return sortedPolls?.map((p) => {
return <Poll key={p.id} item={p} />;
});
};
}, [sortedPolls]);

return (
<div
className={`polls-list-wrapper relative overflow-auto scrollBar px-2 pt-2 xl:pt-3
${isAdmin ? 'h-[calc(100%-48px)]' : 'h-full'}`}
>
<div className="polls-list-wrap-inner">
{renderPolls()}
{renderPolls}
{isLoading ? (
<div className="loading absolute text-center top-1/2 -translate-y-1/2 z-[999] left-0 right-0 m-auto">
<div className="lds-ripple">
Expand Down
Loading

0 comments on commit 0c3e39b

Please sign in to comment.