Skip to content

Commit

Permalink
fix: add neededCurrencyOnly prop
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousMagpie committed Feb 5, 2025
1 parent ad845df commit e3cdab6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/client/src/components/shops/balanceInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export default {
amountNeeded: {
type: Number,
},
neededCurrencyOnly: {
type: String,

This comment has been minimized.

Copy link
@SabreCat

SabreCat Feb 5, 2025

Change to Boolean methinks

},
},
data () {
return {
Expand Down
3 changes: 3 additions & 0 deletions website/client/src/pages/settings/components/yourBalance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export default {
amountNeeded: {
type: Number,
},
neededCurrencyOnly: {
type: String,

This comment has been minimized.

Copy link
@SabreCat

SabreCat Feb 5, 2025

Also change to Boolean

},
},
};
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
<your-balance
:amount-needed="amountNeeded"
currency-needed="gems"
neededCurrencyOnly="gems"

This comment has been minimized.

Copy link
@SabreCat

SabreCat Feb 5, 2025

change to true -- might need to be :neededCurrencyOnly="true" for it not to parse as a string

/>
</div>
</td>
Expand Down

0 comments on commit e3cdab6

Please sign in to comment.