Skip to content

Commit 6796e40

Browse files
authored
Merge pull request #10963 from opencrvs/copilot/fix-print-button-disable-issue
Remove alreadyPrinted prop to allow multiple print attempts
2 parents 3195a2a + dbb9520 commit 6796e40

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/client/src/v2-events/features/events/registered-fields/AlphaPrintButton.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ export const AlphaPrintButton = {
117117
language
118118
})
119119

120-
const alreadyPrinted = Boolean(value)
121-
122120
const handlePrint = async () => {
123121
if (!certificateConfig || !language || !preparePdfCertificate) {
124122
return
@@ -141,7 +139,7 @@ export const AlphaPrintButton = {
141139

142140
return (
143141
<Button
144-
disabled={disabled || !certificateConfig || alreadyPrinted}
142+
disabled={disabled || !certificateConfig}
145143
id={id}
146144
size="medium"
147145
type="secondary"

0 commit comments

Comments
 (0)