diff --git a/js/hubs/components/ReleasePurchase.js b/js/hubs/components/ReleasePurchase.js index 2e3d1fb50..e150f324e 100644 --- a/js/hubs/components/ReleasePurchase.js +++ b/js/hubs/components/ReleasePurchase.js @@ -57,6 +57,7 @@ const ReleasePurchase = (props) => { checkIfHasBalanceToCompleteAction, solBalance, NinaProgramAction, + getUserBalances, } = useContext(Nina.Context) const [release, setRelease] = useState(undefined) const [userIsRecipient, setUserIsRecipient] = useState(false) @@ -73,6 +74,10 @@ const ReleasePurchase = (props) => { [releasePubkey, releasePurchasePending] ) + useEffect(() => { + getUserBalances() + }, []) + const isAuthority = useMemo(() => { if (wallet.connected) { return release?.authority === wallet?.publicKey.toBase58()