Skip to content

Commit 2cf63bb

Browse files
committed
lint
1 parent f0ecd8e commit 2cf63bb

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/ConfirmationScreen.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import { StyledDiv } from "../../../../design-system/elements.js";
2323
import type { ERC20OrNativeToken } from "../../nativeToken.js";
2424
import { Step } from "../Stepper.js";
2525
import type { PayerInfo } from "../types.js";
26+
import { ErrorText } from "./ErrorText.js";
2627
import { SwapSummary } from "./SwapSummary.js";
2728
import { addPendingTx } from "./pendingSwapTx.js";
28-
import { ErrorText } from "./ErrorText.js";
2929

3030
/**
3131
* @internal
@@ -66,7 +66,7 @@ export function SwapConfirmationScreen(props: {
6666
const receiver = props.quote.swapDetails.toAddress;
6767
const sender = props.quote.swapDetails.fromAddress;
6868

69-
const uiErrorMessgae = useMemo(() => {
69+
const uiErrorMessage = useMemo(() => {
7070
if (step === "approval" && status === "error" && error) {
7171
if (error.toLowerCase().includes("user rejected")) {
7272
return {
@@ -160,11 +160,11 @@ export function SwapConfirmationScreen(props: {
160160
</>
161161
)}
162162

163-
{uiErrorMessgae && (
163+
{uiErrorMessage && (
164164
<>
165165
<ErrorText
166-
title={uiErrorMessgae.title}
167-
message={uiErrorMessgae.message}
166+
title={uiErrorMessage.title}
167+
message={uiErrorMessage.message}
168168
/>
169169
<Spacer y="md" />
170170
</>

packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/swap/TransferConfirmationScreen.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ import { type ERC20OrNativeToken, isNativeToken } from "../../nativeToken.js";
3434
import { Step } from "../Stepper.js";
3535
import type { PayerInfo } from "../types.js";
3636
import { ConnectorLine } from "./ConfirmationScreen.js";
37-
import { SwapSummary } from "./SwapSummary.js";
3837
import { ErrorText } from "./ErrorText.js";
38+
import { SwapSummary } from "./SwapSummary.js";
3939

4040
type TransferConfirmationScreenProps = {
4141
title: string;
@@ -110,7 +110,7 @@ export function TransferConfirmationScreen(
110110
refetchInterval: 30 * 1000,
111111
});
112112

113-
const uiErrorMessgae = useMemo(() => {
113+
const uiErrorMessage = useMemo(() => {
114114
if (step === "approve" && status.id === "error" && status.error) {
115115
if (status.error.toLowerCase().includes("user rejected")) {
116116
return {
@@ -227,11 +227,11 @@ export function TransferConfirmationScreen(
227227
</>
228228
)}
229229

230-
{uiErrorMessgae && (
230+
{uiErrorMessage && (
231231
<>
232232
<ErrorText
233-
title={uiErrorMessgae.title}
234-
message={uiErrorMessgae.message}
233+
title={uiErrorMessage.title}
234+
message={uiErrorMessage.message}
235235
/>
236236
<Spacer y="md" />
237237
</>

0 commit comments

Comments
 (0)