Skip to content

Commit

Permalink
feat(wallet): update copy and remove allowance notifications
Browse files Browse the repository at this point in the history
for managed wallet users

refs #247
  • Loading branch information
ygrishajev committed Aug 15, 2024
1 parent 17925d5 commit 7d9cbbd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/deploy-web/src/components/home/YourAccount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export const YourAccount: React.FunctionComponent<Props> = ({ balances, isLoadin
</div>
)}

{!address && <ConnectWallet text="Connect your wallet to deploy!" />}
{!address && <ConnectWallet text="Setup your billing to deploy!" />}
</CardContent>
</Card>
);
Expand Down
2 changes: 1 addition & 1 deletion apps/deploy-web/src/components/shared/PrerequisiteList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const PrerequisiteList: React.FunctionComponent<Props> = ({ onClose, onCo
</Card>
) : (
<div className="py-8">
<ConnectWallet text="Connect your wallet to deploy!" />
<ConnectWallet text="Setup your billing to deploy!" />
</div>
)}
</Popup>
Expand Down
4 changes: 2 additions & 2 deletions apps/deploy-web/src/hooks/useAllowance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const AllowanceNotificationMessage: FC = () => (
);

export const useAllowance = () => {
const { address } = useWallet();
const { address, isManaged } = useWallet();
const [defaultFeeGranter, setDefaultFeeGranter] = useLocalStorage<string | undefined>(`default-fee-granters/${address}`, undefined);
const { data: allFeeGranters, isLoading, isFetched } = useAllowancesGranted(address);
const { enqueueSnackbar } = useSnackbar();
Expand All @@ -45,7 +45,7 @@ export const useAllowance = () => {
}, [allFeeGranters, address]);

useWhen(
isFetched && address,
isFetched && address && !isManaged,
() => {
const persistedAddresses = persisted[address] || [];
const added = difference(actualAddresses, persistedAddresses);
Expand Down

0 comments on commit 7d9cbbd

Please sign in to comment.