Skip to content

Commit f9438fd

Browse files
committed
III-6948: use WorkflowStatus
1 parent ad7034a commit f9438fd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/types/Offer.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { Event } from './Event';
1212
import type { Organizer } from './Organizer';
1313
import { isPlace, Place } from './Place';
1414
import type { Values } from './Values';
15-
import type { WorkflowStatus } from './WorkflowStatus';
15+
import { WorkflowStatus } from './WorkflowStatus';
1616

1717
type DayOfWeek =
1818
| 'monday'
@@ -202,12 +202,13 @@ const isExpired = (offer: Offer): boolean => {
202202

203203
const 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

209210
const isDeletable = (offer: Offer): boolean => {
210-
return offer.workflowStatus !== 'DELETED';
211+
return offer.workflowStatus !== WorkflowStatus.DELETED;
211212
};
212213

213214
const FILMINVOER_LABEL = 'udb-filminvoer';

0 commit comments

Comments
 (0)