Skip to content

Commit

Permalink
restore optional getter
Browse files Browse the repository at this point in the history
  • Loading branch information
turbocrime committed Sep 6, 2024
1 parent f4b0986 commit fec51df
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const getClaimLabel = (
export const SwapClaimViewComponent = ({ value }: { value: SwapClaimView }) => {
if (value.swapClaimView.case === 'visible') {
const swapTxId = value.swapClaimView.value.swapTx;
const output1Value = getOutput1Value(value);
const output2Value = getOutput2Value(value);
const output1Value = getOutput1Value.optional(value);
const output2Value = getOutput2Value.optional(value);
const output1Amount = getAmount.optional(output1Value);
const output2Amount = getAmount.optional(output2Value);
const claimLabel = getClaimLabel(output1Amount, output2Amount);
Expand Down

0 comments on commit fec51df

Please sign in to comment.