diff --git a/src/components/new-submission/cz.new-submission.vue b/src/components/new-submission/cz.new-submission.vue index bf376a7..c433eab 100644 --- a/src/components/new-submission/cz.new-submission.vue +++ b/src/components/new-submission/cz.new-submission.vue @@ -214,7 +214,7 @@ > -

+

Saving...

@@ -559,7 +558,7 @@ class CzRegisterDataset extends mixins(ActiveRepositoryMixin) { this.selectedRepository.key, ) - if (response && Number.isNaN(response)) { + if (response && isNaN(response)) { this.submission = Submission.getInsertData( response.metadata, this.selectedRepository.key, diff --git a/src/models/repository.model.ts b/src/models/repository.model.ts index ee2d252..859d791 100644 --- a/src/models/repository.model.ts +++ b/src/models/repository.model.ts @@ -145,7 +145,7 @@ export default class Repository extends Model implements IRepository { callback?: () => any, ) { const handleMessage = async (event: MessageEvent) => { - if (event.origin !== APP_URL || !Object.prototype.hasOwnProperty.call(!event.data, 'token')) + if (event.origin !== APP_URL || !Object.prototype.hasOwnProperty.call(event.data, 'token')) return if (activeRepository && event.data?.token) {