fix: Disable quick timer actions for viewers

This commit is contained in:
Maksim Eltyshev
2022-09-28 18:38:03 +02:00
parent e1a0b635ea
commit e3d00c8791
2 changed files with 14 additions and 12 deletions

View File

@@ -125,7 +125,7 @@ const Card = React.memo(
startedAt={timer.startedAt}
total={timer.total}
size="tiny"
onClick={handleToggleTimerClick}
onClick={canEdit ? handleToggleTimerClick : undefined}
/>
</span>
)}