Skip to content

Commit 3030bc0

Browse files
fix: only show error in claim package modal if checkResult is null (#1199)
Co-authored-by: Daniel Roe <daniel@roe.dev>
1 parent 6fb75c8 commit 3030bc0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/components/Package/ClaimPackageModal.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ const isChecking = computed(() => {
3636
})
3737
3838
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')))
4545
})
4646
4747
const connectorModal = useModal('connector-modal')

0 commit comments

Comments
 (0)