File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import { Event } from './Event';
1212import type { Organizer } from './Organizer' ;
1313import { isPlace , Place } from './Place' ;
1414import type { Values } from './Values' ;
15- import type { WorkflowStatus } from './WorkflowStatus' ;
15+ import { WorkflowStatus } from './WorkflowStatus' ;
1616
1717type DayOfWeek =
1818 | 'monday'
@@ -202,12 +202,13 @@ const isExpired = (offer: Offer): boolean => {
202202
203203const isEditable = ( offer : Offer ) : boolean => {
204204 return (
205- offer . workflowStatus !== 'DELETED' && offer . workflowStatus !== 'REJECTED'
205+ offer . workflowStatus !== WorkflowStatus . DELETED &&
206+ offer . workflowStatus !== WorkflowStatus . REJECTED
206207 ) ;
207208} ;
208209
209210const isDeletable = ( offer : Offer ) : boolean => {
210- return offer . workflowStatus !== ' DELETED' ;
211+ return offer . workflowStatus !== WorkflowStatus . DELETED ;
211212} ;
212213
213214const FILMINVOER_LABEL = 'udb-filminvoer' ;
You can’t perform that action at this time.
0 commit comments