Skip to content

Commit

Permalink
StickyPlayer: don't transfer amount if streaming is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisommore committed Sep 6, 2023
1 parent 8a6d407 commit fd92cb7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/StickyPlayer/StickyPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,12 @@ const StickyPlayer: React.FC<StickyPlayerProps> = ({ musicNft }) => {
}, [musicNft]);

useEffect(() => {
if (isPremium && appContext.wallet && musicNft) {
if (
isPremium &&
appContext.wallet &&
musicNft &&
!musicNft.disableStreaming
) {
transferAmount(appContext.wallet.address, musicNft.owner, 0.0015);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down

0 comments on commit fd92cb7

Please sign in to comment.