Skip to content

Commit

Permalink
Merge pull request #830 from hypersign-protocol/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Raj6939 authored Jan 25, 2022
2 parents c9cd36c + 00ec8a5 commit 8f9d985
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/participant/ActionInputs/TwitterRetweet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ import webAuth from "../../../mixins/twitterLogin";
import eventBus from "../../../eventBus.js";
import notificationMixins from "../../../mixins/notificationMixins";
import Messages from "../../../utils/messages/participants/en";
import { isretweetUrl } from '../../../mixins/fieldValidationMixin';
export default {
components: { Loading },
name: "TwitterRetweet",
Expand Down Expand Up @@ -166,6 +167,10 @@ export default {
if (!this.retweetUrl) {
throw new Error("Retweet url cannot be empty");
}
if(isretweetUrl(this.retweetUrl)){
this.retweetUrl='';
return false;
}
this.isLoading = true;
const twitterId = localStorage.getItem("twitterId");
if (twitterId) {
Expand Down

0 comments on commit 8f9d985

Please sign in to comment.