Skip to content

Commit d59478b

Browse files
committed
refactor(web): rabbit-feedback
1 parent bfcb020 commit d59478b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

web/src/pages/Courts/CourtDetails/StakePanel/StakeWithdrawButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ const StakeWithdrawButton: React.FC<IActionButton> = ({ amount, parsedAmount, ac
201201

202202
const handleClick = useCallback(() => {
203203
setIsPopupOpen(true);
204-
if (ActionType.allowance && isAllowance && increaseAllowanceConfig && publicClient) {
204+
if (isAllowance && increaseAllowanceConfig && publicClient) {
205205
setPopupStepsState(getStakeSteps(StakeSteps.ApproveInitiate, amount, theme));
206206

207207
increaseAllowance(increaseAllowanceConfig.request)

web/src/pages/Courts/CourtDetails/StakePanel/StakeWithdrawPopup/stakeSteps.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const createApprovalSteps = (
5353
return [
5454
{
5555
title: "Approve in wallet",
56-
subtitle: error ? (error?.shortMessage ?? error.message) : "PNK spending",
56+
subtitle: error ? (error?.shortMessage ?? error?.message) : "PNK spending",
5757
rightSided: true,
5858
variant,
5959
state,
@@ -104,7 +104,7 @@ const createStakeSteps = (
104104
},
105105
{
106106
title: "Stake in wallet",
107-
subtitle: error ? (error?.shortMessage ?? error.message) : "",
107+
subtitle: error ? (error?.shortMessage ?? error?.message) : "",
108108
rightSided: true,
109109
variant,
110110
state,
@@ -115,7 +115,7 @@ const createStakeSteps = (
115115
: [
116116
{
117117
title: "Unstake in wallet",
118-
subtitle: error ? (error?.shortMessage ?? error.message) : "",
118+
subtitle: error ? (error?.shortMessage ?? error?.message) : "",
119119
rightSided: true,
120120
variant,
121121
state,

0 commit comments

Comments
 (0)