Skip to content

Commit

Permalink
fix(deployment): only show deployment top up for non-trial users
Browse files Browse the repository at this point in the history
  • Loading branch information
baktun14 committed Feb 11, 2025
1 parent 08c81e4 commit bb8bc84
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const DeploymentDetailTopBar: React.FunctionComponent<Props> = ({ address
const { changeDeploymentName, getDeploymentData, getDeploymentName } = useLocalNotes();
const { udenomToUsd } = usePricing();
const router = useRouter();
const { signAndBroadcastTx, isManaged } = useWallet();
const { signAndBroadcastTx, isManaged, isTrialing } = useWallet();
const [isDepositingDeployment, setIsDepositingDeployment] = useState(false);
const storageDeploymentData = getDeploymentData(deployment?.dseq);
const deploymentName = getDeploymentName(deployment?.dseq);
Expand Down Expand Up @@ -140,7 +140,7 @@ export const DeploymentDetailTopBar: React.FunctionComponent<Props> = ({ address
Add funds
</Button>

{isManaged && browserEnvConfig.NEXT_PUBLIC_AUTO_TOP_UP_ENABLED && (
{isManaged && !isTrialing && browserEnvConfig.NEXT_PUBLIC_AUTO_TOP_UP_ENABLED && (
<div className="ml-4 flex items-center gap-2">
<Switch checked={deploymentSetting.data?.autoTopUpEnabled} onCheckedChange={deploymentSetting.setAutoTopUpEnabled} />
<span>Auto top-up</span>
Expand Down

0 comments on commit bb8bc84

Please sign in to comment.