Skip to content

Commit 72ddf90

Browse files
authored
Merge pull request #184 from m2mathew/fix/use_correct_active_amount_in_members_only
Fix/use correct active amount in members only
2 parents 0e2994d + 361c9a0 commit 72ddf90

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tmac-website",
33
"description": "Website for the Texas Music Administrators Conference",
4-
"version": "2.30.0",
4+
"version": "2.30.1",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/m2mathew/tmac-website"

src/components/members/MemberContent/MemberInfo/MemberStatus.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ const MemberStatus: React.FC<Props> = ({ currentMemberData }) => {
113113

114114
const needsToPay = !currentMemberData?.AmountPaid;
115115

116-
const amountToPay = currentMemberData?.MemberType === 'Active' ? 50.00 : 30.00;
116+
const amountToPay = currentMemberData?.MemberType === 'Active' ? 75.00 : 30.00;
117117

118118
const handleSuccessfulPayment = useCallback(async (payment: PaypalPayment) => {
119119
const updatedMemberData = {
120120
...currentMemberData,
121-
AmountPaid: currentMemberData?.MemberType === 'Active' ? 50 : 30,
121+
AmountPaid: currentMemberData?.MemberType === 'Active' ? 75 : 30,
122122
PaypalPayerID: payment?.payerID,
123123
PaypalPaymentID: payment?.paymentID,
124124
PaymentOption: payment?.paymentID ? 'Paypal' : 'Invoiced',
@@ -205,8 +205,8 @@ const MemberStatus: React.FC<Props> = ({ currentMemberData }) => {
205205
>
206206
Outstanding balance:
207207
<StyledStrong>
208-
{!isRegisteredForCurrentYear && '$50.00'}
209-
{needsToPay && currentMemberData?.MemberType === 'Active' && '$50.00'}
208+
{!isRegisteredForCurrentYear && '$75.00'}
209+
{needsToPay && currentMemberData?.MemberType === 'Active' && '$75.00'}
210210
{currentMemberData?.MemberType === 'Retired' && '$30.00'}
211211
{!needsToPay && '$0.00'}
212212
</StyledStrong>

src/components/register/invoice-table.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const InvoiceTable: React.FC<Props> = ({
8080
}) => {
8181
// Work out the correct amount
8282
const isString = typeof amount === 'string';
83-
const updatedAmount = amount === 0 ? 50 : amount;
83+
const updatedAmount = amount === 0 ? 75 : amount;
8484
const formattedAmount = isString ? updatedAmount : `$${Number(updatedAmount)?.toFixed(2).toLocaleString()}`;
8585

8686
const hasAddedFallConferenceFee = Number(amount) > 100;

0 commit comments

Comments
 (0)