aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/website/ts/components/inputs/allowance_state_toggle.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/website/ts/components/inputs/allowance_state_toggle.tsx b/packages/website/ts/components/inputs/allowance_state_toggle.tsx
index 4f986dadc..a8f8f554f 100644
--- a/packages/website/ts/components/inputs/allowance_state_toggle.tsx
+++ b/packages/website/ts/components/inputs/allowance_state_toggle.tsx
@@ -89,12 +89,12 @@ export class AllowanceStateToggle extends React.Component<AllowanceStateTogglePr
}
private _getTooltipContent(): React.ReactNode {
const symbol = this.props.token.symbol;
+ const isLockingToken = this.props.tokenState.allowance.gt(0);
switch (this.state.allowanceState) {
case AllowanceState.Loading:
- // TODO: support both awaiting confirmation and awaiting transaction.
return (
<Text noWrap={true} fontColor="white">
- Please confirm in MetaMask
+ {isLockingToken ? 'Locking' : 'Unlocking'} <b>{symbol}</b>
</Text>
);
case AllowanceState.Locked: