From 706c517b76f1b3d5fd4f5bc44c730ee2076cc2ca Mon Sep 17 00:00:00 2001 From: Rodrigo Quelca Date: Wed, 21 Aug 2024 17:27:37 -0400 Subject: [PATCH] renme redirect methods because sonarQube observations --- src/components/task.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/task.vue b/src/components/task.vue index cf3771c06..a70efc4ac 100644 --- a/src/components/task.vue +++ b/src/components/task.vue @@ -427,6 +427,7 @@ export default { */ // eslint-disable-next-line consistent-return async getDestinationUrl() { + debugger; const { elementDestination, allow_interstitial: allowInterstitial } = this.task || {}; if (!elementDestination) { @@ -805,9 +806,10 @@ export default { * @param {Object} data - The event data containing the tokenId of the task. */ handleRedirectToTask(data) { + if (data?.params[0]?.tokenId) { this.loadingTask = true; - this.loadTask(data.params[0].tokenId); + // this.loadTask(data.params[0].tokenId); this.taskId = data.params[0].tokenId; this.reload(); }