[READ-ONLY] a fast, modern browser for the npm registry

fix: only show error in claim package modal if checkResult is null (#1199)

Co-authored-by: Daniel Roe <daniel@roe.dev>

authored by

Mainasara Al-amin Tsowa
Daniel Roe
and committed by
GitHub
3030bc0a 6fb75c85

+6 -6
+6 -6
app/components/Package/ClaimPackageModal.vue
··· 36 36 }) 37 37 38 38 const mergedError = computed(() => { 39 - return ( 40 - publishError.value ?? 41 - (checkError.value instanceof Error 42 - ? checkError.value.message 43 - : $t('claim.modal.failed_to_check')) 44 - ) 39 + return checkResult.value !== null 40 + ? null 41 + : (publishError.value ?? 42 + (checkError.value instanceof Error 43 + ? checkError.value.message 44 + : $t('claim.modal.failed_to_check'))) 45 45 }) 46 46 47 47 const connectorModal = useModal('connector-modal')