Skip to content

Commit

Permalink
Merge pull request #5028 from FlowFuse/5027-fix-initial-team-select
Browse files Browse the repository at this point in the history
Fix invalid check for billing enablement
  • Loading branch information
knolleary authored Jan 17, 2025
2 parents 46cdfcc + 9a85f8f commit 033145d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/TeamTypeTile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default {
computed: {
...mapState('account', ['user', 'teams']),
pricing: function () {
const billing = this.teamType.properties?.billing.description?.split('/')
const billing = this.teamType.properties?.billing?.description?.split('/')
const price = {}
if (typeof billing !== 'undefined') {
price.value = billing[0]
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/store/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ const actions = {
return
}
} else {
if (!currentTeam || currentTeam.id === team?.id) {
if ((!currentTeam && !team) || currentTeam?.id === team?.id) {
state.commit('clearPendingTeamChange')
return
}
Expand Down

0 comments on commit 033145d

Please sign in to comment.