Skip to content

Commit

Permalink
🐛 fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pbc1017 committed Mar 5, 2024
1 parent 66af93d commit 8d86bad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ export const ClubRegistrationDetail = (): JSX.Element => {
setRegistration(data.data);
const typeString =
data.data.typeId === 1
? "provisioanl"
? "provisional"
: data.data.typeId === 2
? "promotional"
: "renewal";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export const EditClubRegistration = (): JSX.Element => {
setRegistration(data.data);
const typeString =
data.data.typeId === 1
? "provisioanl"
? "provisional"
: data.data.typeId === 2
? "promotional"
: "renewal";
Expand Down Expand Up @@ -196,9 +196,13 @@ export const EditClubRegistration = (): JSX.Element => {
clubId,
typeId: type === "provisional" ? 1 : type === "promotional" ? 2 : 3,
};
console.log(dataToSend.typeId);
console.log(type);

// Success callback
const handleSuccess = (response: any) => {
console.log(dataToSend);
console.log(type);
console.log("Activity added successfully:", response);
setRegistration(initialState);
navigate(-1);
Expand Down

0 comments on commit 8d86bad

Please sign in to comment.