Skip to content

Commit

Permalink
fix: fixed certification mint message
Browse files Browse the repository at this point in the history
  • Loading branch information
zcy22606 committed Mar 15, 2024
1 parent 5e3a0b8 commit af1590b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ const TagsAndProgress: FC<TagsAndProgressProps> = ({

const { certification } = useContext(CertificationCardContext);

certification &&
console.log(certification.name.replace(' Learning Track', ''));

switch (learningStatus) {
case LearningStatus.UN_START:
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ const MintButton = (props: {
certification.mint ? 'cursor-not-allowed opacity-40' : ''
)}
onClick={async () => {
if (certification.id === '51909b45-65b7-4864-9367-dcc38e0c381c') {
message.info('Solana NFT will open for minting soon!');
if (!certification.name.toLowerCase().startsWith('mantle')) {
const zoology = certification.name.replace(' Learning Track', '');
message.info(`${zoology} NFT will open for minting soon!`);
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ const GettingCertificate: FC<GettingCertificateProps> = ({
message.info('Minting is not available on mobile devices');
return;
}

if (certification.id === '51909b45-65b7-4864-9367-dcc38e0c381c') {
message.info('Solana NFT will open for minting soon!');
if (!certification.name.toLowerCase().startsWith('mantle')) {
const zoology = certification.name.replace(' Learning Track', '');
message.info(`${zoology} NFT will open for minting soon!`);
return;
}
if (certification.mint) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,9 @@ const GettingCertificate: FC<GettingCertificateProps> = ({
certification.mint ? 'cursor-not-allowed opacity-40' : ''
)}
onClick={() => {
if (certification.id === '51909b45-65b7-4864-9367-dcc38e0c381c') {
message.info('Solana NFT will open for minting soon!');
if (!certification.name.toLowerCase().startsWith('mantle')) {
const zoology = certification.name.replace(' Learning Track', '');
message.info(`${zoology} NFT will open for minting soon!`);
return;
}
if (certification.mint) {
Expand Down

0 comments on commit af1590b

Please sign in to comment.