diff --git a/lang/ca.json b/lang/ca.json index f5c58249ba..c55842172f 100644 --- a/lang/ca.json +++ b/lang/ca.json @@ -1294,7 +1294,7 @@ "page.donate.matching_toast.upper_valid": "Emparellament estimat", "page.donate.passport_toast.description.eligible": "La teva donació és elegible per ser emparellada! Després del", "page.donate.passport_toast.description.eligible_2": ", totes les donacions seran revisades per a la protecció contra frau i els fons d'emparellament seran enviats als projectes. Estigues atent a les notificacions :)", - "page.donate.passport_toast.description.non_eligible": "Obtén el teu emparellament de donació amb finançament quadràtic!\nAugmenta la teva puntuació de Gitcoin Passport abans de", + "page.donate.passport_toast.description.non_eligible": "Obtén el teu emparellament de donació amb finançament quadràtic!\nComproveu la vostra elegibilitat QF abans", "page.donate.passport_toast.description.not_connected": "Obtén el teu emparellament de donació amb finançament quadràtic!\nVerifica el teu Gitcoin Passport abans de", "page.donate.passport_toast.title.eligible": "Finançament Quadràtic", "page.donate.passport_toast.title.non_eligible": "No et perdis l'emparellament!", diff --git a/lang/en.json b/lang/en.json index 4f81d535ef..e5c02cc5ba 100644 --- a/lang/en.json +++ b/lang/en.json @@ -1295,7 +1295,7 @@ "page.donate.matching_toast.upper_valid": "Estimated matching", "page.donate.passport_toast.description.eligible": "Your donation is eligible to be matched! After the", "page.donate.passport_toast.description.eligible_2": ", all donations will be reviewed for fraud protection and matching funds will be sent to the projects. Stay tuned for notifications :)", - "page.donate.passport_toast.description.non_eligible": "Get your donation matched with quadratic funding!\nIncrease your Gitcoin Passport score before", + "page.donate.passport_toast.description.non_eligible": "Get your donation matched with quadratic funding!\nCheck your QF Eligibility before", "page.donate.passport_toast.description.not_connected": "Get your donation matched with quadratic funding!\nVerify your Gitcoin Passport before", "page.donate.passport_toast.title.eligible": "Quadratic Funding", "page.donate.passport_toast.title.non_eligible": "Don’t miss out on matching!", diff --git a/lang/es.json b/lang/es.json index 0846fe04fc..d9b39113b0 100644 --- a/lang/es.json +++ b/lang/es.json @@ -1294,7 +1294,7 @@ "page.donate.matching_toast.upper_valid": "Estimado del monto complementado", "page.donate.passport_toast.description.eligible": "¡Tu donación es elegible para ser complementada! Después de la", "page.donate.passport_toast.description.eligible_2": ", todas las donaciones serán revisadas para protección contra fraudes y los fondos de complementarios se enviarán a los proyectos. ¡Mantente atento a las notificaciones! :)", - "page.donate.passport_toast.description.non_eligible": "¡Haz que tu donación sea complementada con financiamiento cuadrático! Aumenta tu puntaje de Gitcoin Passport antes de", + "page.donate.passport_toast.description.non_eligible": "¡Haz que tu donación sea complementada con financiamiento cuadrático!\nCompruebe su elegibilidad QF antes de", "page.donate.passport_toast.description.not_connected": "¡Haz que tu donación sea complementada con financiamiento cuadrático! Verifica tu Gitcoin Passport antes de", "page.donate.passport_toast.title.eligible": "Financiamiento Cuadrático", "page.donate.passport_toast.title.non_eligible": "¡No te pierdas la oportunidad!", diff --git a/src/components/modals/PassportModal.tsx b/src/components/modals/PassportModal.tsx index fdeb08f1ec..8cb4822b57 100644 --- a/src/components/modals/PassportModal.tsx +++ b/src/components/modals/PassportModal.tsx @@ -82,6 +82,11 @@ const PassportModal: FC = props => { const { locale, formatMessage } = useIntl(); const { isAnimating, closeModal } = useModalAnimation(setShowModal); + const MBDEligibile = + qfEligibilityState === EQFElegibilityState.ELIGIBLE && + passportState !== EPassportState.SIGNED && + passportState !== EPassportState.LOADING_SCORE; + const QFEligibilityCurrentState = qfEligibilityState === EQFElegibilityState.ELIGIBLE ? EQFElegibilityTagState.ELIGIBLE @@ -93,16 +98,20 @@ const PassportModal: FC = props => { passportState !== EPassportState.CONNECTING && passportState !== EPassportState.NOT_CONNECTED && passportState !== EPassportState.INVALID && + passportState !== EPassportState.ERROR && ![ EQFElegibilityState.CHECK_ELIGIBILITY, EQFElegibilityState.PROCESSING, EQFElegibilityState.ERROR, EQFElegibilityState.LOADING, ].includes(qfEligibilityState) && - !( - qfEligibilityState === EQFElegibilityState.ELIGIBLE && - passportState !== EPassportState.SIGNED - ); + !MBDEligibile; + + const gitcoinNotConnected = + passportState === EPassportState.NOT_CONNECTED || + passportState === EPassportState.NOT_SIGNED || + passportState === EPassportState.NOT_CREATED || + passportState === EPassportState.CONNECTING; const qfRoundEndDate = currentRound?.endDate ? new Date(currentRound.endDate) @@ -136,7 +145,7 @@ const PassportModal: FC = props => { useEffect(() => { if ( - passportState === EPassportState.ERROR || + qfEligibilityState === EQFElegibilityState.ERROR || qfEligibilityState === EQFElegibilityState.ELIGIBLE ) { setTimeout(() => { @@ -228,6 +237,14 @@ const PassportModal: FC = props => { /> )}
+ {passportState === EPassportState.ERROR && ( + + )} {passportState === EPassportState.INVALID ? (