Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
disable paper mode for none premium accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
saleh-mir committed Oct 25, 2022
1 parent c0e927e commit 34e5d79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/views/tabs/LiveTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@
:object="form"
name="paper_mode"
title="Paper Trade"
:disabled="planInfo.plan !== 'premium'"
:disabled-guide="planInfo.plan !== 'premium' ? 'Premium plan required' : ''"
description="Trade in real-time using actual exchange data with PAPER money."/>
</div>
</div>
Expand Down Expand Up @@ -377,7 +379,7 @@ export default {
}
},
computed: {
...mapState(useMainStore, ['isInitiated']),
...mapState(useMainStore, ['isInitiated', 'planInfo']),
...mapState(useMainStore, {
navModals: 'modals'
}),
Expand Down

0 comments on commit 34e5d79

Please sign in to comment.