Skip to content

Commit 16a73db

Browse files
authored
fix: publish button (#321)
the check was about undefined, but for some reason null is in the data (see diff)
1 parent 360b024 commit 16a73db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Discounts/DiscountDetailRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const DiscountDetailRow = ({
4646
}: Props) => {
4747
const history = useHistory();
4848
const [canBePublished, setCanBePublished] = useState(
49-
row.original.lastBucketCodeLoadStatus !== undefined
49+
row.original.lastBucketCodeLoadStatus
5050
? row.original.lastBucketCodeLoadStatus === BucketCodeLoadStatus.Finished
5151
: true
5252
);

0 commit comments

Comments
 (0)