Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-garrett committed Feb 13, 2025
1 parent f011088 commit 6b79467
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/flame-defi/app/swap/useSwapButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ export function useSwapButton({
);
setTxnHash(tx);
} catch (error) {
const errorMessage = (error as ErrorWithMessage).message || "Error unwrapping";
const errorMessage =
(error as ErrorWithMessage).message || "Error unwrapping";
setTxnStatus(TXN_STATUS.FAILED);
handleErrorMsgs(errorMessage);
}
Expand All @@ -152,7 +153,8 @@ export function useSwapButton({
);
setTxnHash(tx);
} catch (error) {
const errorMessage = (error as ErrorWithMessage).message || "Error unwrapping";
const errorMessage =
(error as ErrorWithMessage).message || "Error unwrapping";
setTxnStatus(TXN_STATUS.FAILED);
handleErrorMsgs(errorMessage);
}
Expand Down Expand Up @@ -200,7 +202,8 @@ export function useSwapButton({
);
setTxnHash(tx);
} catch (error) {
const errorMessage = (error as ErrorWithMessage).message || "Error executing swap";
const errorMessage =
(error as ErrorWithMessage).message || "Error executing swap";
setTxnStatus(TXN_STATUS.FAILED);
handleErrorMsgs(errorMessage);
}
Expand Down

0 comments on commit 6b79467

Please sign in to comment.