Skip to content

Commit

Permalink
fix new api values
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianaJM committed Jan 27, 2025
1 parent 348a29c commit e3359a4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,10 @@ const SignVhuOperation = ({ bsvhuId, onClose }) => {
input: update as BsvhuInput
}
});
// FIXME: change with new api call ?
await signBsvhu({
variables: {
id: bsvhu.id,
input: { author, date, type: SignatureTypeInput.Operation } // FIXME: change with new api value
input: { author, date, type: SignatureTypeInput.Operation }
}
});
onClose();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,10 @@ const SignVhuReception = ({ bsvhuId, onClose }) => {
input: update as BsvhuInput
}
});
// FIXME: change with new api call ?
await signBsvhu({
variables: {
id: bsvhu.id,
input: { author, date, type: SignatureTypeInput.Operation } // FIXME: change with new api value
input: { author, date, type: SignatureTypeInput.Reception }
}
});
onClose();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ const ActBsvhuValidation = ({
(canIrregularSituationSignWithNoSiret ||
canIrregularSituationSignWithSiretNotRegistered))) &&
renderSignedByProducerModal()}
{/* FIXME new api status Received ? */}
{status === BsvhuStatus.Received && renderReceivedModal()}
{status === BsvhuStatus.Sent && renderSentModal()}
</>
Expand Down

0 comments on commit e3359a4

Please sign in to comment.