Skip to content

Commit 33366e4

Browse files
committed
change naming
1 parent f0091d0 commit 33366e4

File tree

1 file changed

+6
-6
lines changed
  • packages/checkout/src/views/PaymentSelection

1 file changed

+6
-6
lines changed

packages/checkout/src/views/PaymentSelection/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const PaymentSelectionContent = () => {
4646

4747
const [disableButtons, setDisableButtons] = useState(false)
4848
const [isError, setIsError] = useState<boolean>(false)
49-
const [isBuildingPurchaseTx, setIsBuildingPurchaseTx] = useState<boolean>(false)
49+
const [isPreparingTransaction, setIsPreparingTransaction] = useState<boolean>(false)
5050

5151
const {
5252
chain,
@@ -147,7 +147,7 @@ export const PaymentSelectionContent = () => {
147147
return
148148
}
149149

150-
setIsBuildingPurchaseTx(true)
150+
setIsPreparingTransaction(true)
151151
setIsError(false)
152152
setDisableButtons(true)
153153

@@ -215,7 +215,7 @@ export const PaymentSelectionContent = () => {
215215
}
216216
})
217217

218-
setIsBuildingPurchaseTx(false)
218+
setIsPreparingTransaction(false)
219219
closeSelectPaymentModal()
220220

221221
skipOnCloseCallback()
@@ -251,7 +251,7 @@ export const PaymentSelectionContent = () => {
251251
return
252252
}
253253

254-
setIsBuildingPurchaseTx(true)
254+
setIsPreparingTransaction(true)
255255
setIsError(false)
256256
setDisableButtons(true)
257257

@@ -344,7 +344,7 @@ export const PaymentSelectionContent = () => {
344344
}
345345
})
346346

347-
setIsBuildingPurchaseTx(false)
347+
setIsPreparingTransaction(false)
348348
closeSelectPaymentModal()
349349

350350
skipOnCloseCallback()
@@ -478,7 +478,7 @@ export const PaymentSelectionContent = () => {
478478
}
479479
shape="square"
480480
variant="primary"
481-
label={isBuildingPurchaseTx ? 'Building Transaction...' : 'Complete Purchase'}
481+
label={isPreparingTransaction ? 'Preparing Transaction...' : 'Complete Purchase'}
482482
/>
483483
<div className="flex w-full justify-center items-center gap-0.5 my-2">
484484
{/* Replace by icon from design-system once new release is out */}

0 commit comments

Comments
 (0)